escaping Questions

4

Solved

I am using the elasticsearch python client to make some queries to the elasticsearch instance that we are hosting. I noticed that some characters need to be escaped. Specifically, these... + - &a...
Borax asked 24/10, 2016 at 15:57

11

Solved

From the 2gis API I got the following JSON string. { "api_version": "1.3", "response_code": "200", "id": "3237490513229753", "lon": "38.969916127827", "lat": "45.069889625267", "page_url": n...
Schwa asked 29/8, 2013 at 15:19

2

Solved

I'm totally stuck on this, I'm trying to escape a single quote in a JSP. I have some data that I'm outputting directly into a JS string and the single quotes seem to be causing issues. Here is my ...
Ruthful asked 14/3, 2012 at 18:49

2

Solved

I am trying to use one Hibernate mapping for several different databases: H2, Oracle, MySql. Each database has a different list of reserved words. I would like Hibernate to automatically escape t...
Begrime asked 29/7, 2010 at 16:30

4

Solved

How do I enter a line break (or other non-text characters usually solved with escape characters) in a StringVar in Crystal Reports? Wanted output: line 1 line 2 I've tried StringVar s := "li...
Get asked 29/8, 2012 at 11:40

1

Solved

I am trying to implement the function proposed by mklement0 on this answer My goal is to implement this as a reusable batch subfunction But before that I have run into a pattern of inconsistent beh...
Toratorah asked 18/4, 2023 at 2:39

8

Solved

In nodejs, the only way to execute external commands is via sys.exec(cmd). I'd like to call an external command and give it data via stdin. In nodejs there does yet not appear to be a way to open a...
Practise asked 22/11, 2009 at 20:21

4

Solved

Is there a way to escape single quotes in go? The following: str := "I'm Bob, and I'm 25." str = strings.Replace(str, "'", "\'", -1) Gives the error: unknown escape sequence: ' I would like st...
Culpepper asked 16/10, 2015 at 12:30

10

Solved

I have a project, in which some JavaScript var is evaluated. Because the string needs to be escaped (single quotes only), I have written the exact same code in a test function. I have the following...
Goy asked 26/2, 2013 at 11:6

5

Solved

I need to export some data using SQL Server 2000's BCP utility. Sometimes my data contains characters, such as \t and \n, that I need to use as column and row terminators. How do I get BCP to escap...
Eustatius asked 29/12, 2009 at 18:24

5

Solved

I'm using `JSON.stringify? to stringify an object, but the quotes are not escaped? Am I misunderstanding that it's suppose to escape the quotes? This is outputted into the template without any of ...
Photoperiod asked 31/3, 2011 at 20:35

17

How do I get the substring " It's big \"problem " using a regular expression? s = ' function(){ return " It\'s big \"problem "; }';
Miserly asked 30/10, 2008 at 10:53

16

Solved

I am creating a sample ASP.NET MVC 3 site using Razor as view engine. The razor syntax starts with @ character e.g. @RenderBody(). If I write @test on my cshtml page it gives me parse error CS01...
Vondavonni asked 2/9, 2010 at 10:35

4

I want to replace certain characters with their respective HTML entities in an HTML response inside a filter. Characters include <, >, &. I can't use replaceAll() as it will replace...
Atheroma asked 11/6, 2012 at 10:8

5

Solved

I want to display a string in Bash like this: I'm a student Of course you can do it like this: echo "I'm a student" But how can I accomplish this while using single quotes around the st...
Command asked 24/11, 2011 at 8:35

3

Solved

We are building a restful api using Spring MVC and freemarker as the templating language. We have chosen to build json responses in the freemarker Example freemarker.ftl: { "field1" : "${response...
Haulage asked 17/6, 2011 at 8:59

3

Solved

I'm adding functionality to a GM script we use here at work, but when trying to post (cross site may I add) to another page, my posting value of CMD is different than what it is on the page. It's...
Strobila asked 20/1, 2012 at 18:44

10

Solved

I was wondering if there is any way to escape a CDATA end token (]]>) within a CDATA section in an xml document. Or, more generally, if there is some escape sequence for using within a CDATA (bu...
Messere asked 21/10, 2008 at 21:54

5

Solved

Yes, I do realize it has been asked a thousand of times how to escape spaces in scp, but I fail to do that with the &-sign, so if that sign is part of the directory name. [sorunome@sorunome-de...
Vigilant asked 10/11, 2015 at 13:34

4

Solved

I am writing some documentation in markdown and I want to document how to create a text file using a bash HEREDOC. Here is the command I want to document: # cat > /tmp/answers.txt <<EOT &...
Gummy asked 19/6, 2014 at 17:51

5

The following code in one of my views returns unescaped html string which cannot be parsed in frontend since it is an Ajax request. return render_to_response(template_name, { 'form': form, redir...
Erickaericksen asked 22/12, 2009 at 13:7

1

Solved

What I want is so simple. In Visual Studio Code, I want to copy the value of a text variable from the Watch window into memory. I understand that, in the watch window, the text is escaped to put ev...
Ronen asked 24/6, 2020 at 9:19

3

When I am executing following query in HIVE, it is giving me current date instead of the column values from USER_INFO table. SELECT CURRENT_DATE FROM USER_INFO LIMIT 1; How do I escape reserv...
Annabelle asked 25/8, 2017 at 3:36

1

Solved

I use WinSCP within a Powershell script. It suddenly stopped working. After a while I could figure out that the problem appeared from a more recent version of PowerShell: Reduced code: & winscp...
Elisha asked 15/11, 2022 at 3:27

3

Solved

I'm trying to display a data feed on a page. We're experiencing encoding issues with a weird character. For some reason, in the feed there's the U+FFFD character. And htmlentities() will not escape...
Fuchs asked 5/12, 2012 at 15:56

© 2022 - 2024 — McMap. All rights reserved.