single-quotes Questions

5

I have an application, and it is fed some HTML. It then needs to put that HTML into a string. This HTML contains single and double quotes. Is it possible, in javascript, to declare a string with in...
Magnification asked 8/7, 2011 at 18:17

12

In JavaScript, a backtick† seems to work the same as a single quote. For instance, I can use a backtick to define a string like this: var s = `abc`; Is there a way in which the behavior o...
Goldfish asked 28/12, 2014 at 15:59

15

Solved

I am trying to insert some text data into a table in SQL Server 9. The text includes a single quote '. How do I escape that? I tried using two single quotes, but it threw me some errors. eg. insert...
Reconnoitre asked 19/10, 2009 at 1:18

8

Solved

I wrote the database schema (only one table so far), and the INSERT statements for that table in one file. Then I created the database as follows: $ sqlite3 newdatabase.db SQLite version 3.4.0 Ente...
Philoprogenitive asked 2/3, 2009 at 19:12

6

Solved

I try to add single quotes to a string but don't see how to do it. For instance I would like to replace ABC by 'ABC'. I have played with paste, cat, print but don't see how to do it. Any solution? ...
Olfactory asked 20/3, 2013 at 16:59

6

I've lots of string values containing single quotes which I need to insert to a column in REDSHIFT table. I used both /' and '' to escape the single quote in INSERT statement. e.g. INSERT INTO...
Bloodshed asked 28/12, 2017 at 0:50

5

I have a file where on each line I have text like this (representing cast of a film): [{'cast_id': 23, 'character': "Roger 'Verbal' Kint", 'credit_id': '52fe4260c3a36847f8019af7', 'gender': ...
Ancestry asked 5/12, 2017 at 17:55

7

Solved

I have a long list of names that I need to have quotes around (it can be double or single quotes) and I have about 8,000 of them. I have them in Excel without any quotes and I can copy all of the n...
Sherasherar asked 30/6, 2010 at 1:49

1

Solved

I would like .net core System.Text.Json to ignore the single quote character when escaping characters for serialization but I just can't get it to work: var encoderSettings = new TextEncoderSetting...
Berriman asked 13/10, 2022 at 15:28

4

Solved

I've been working with Visual Studio Code for two days now. I try to build a Vue-Application. But always when I run the application by npm run serve, I get the following errors: 9:9 error Strings...
Mirabel asked 2/4, 2020 at 8:9

1

i explored all over the topics and found out there is no answer for this question, everyone is using search and replace, that's not the point. we have to set the default value for attributes when c...
Corwun asked 9/3, 2022 at 6:17

7

Solved

In Bash, what are the differences between single quotes ('') and double quotes ("")?
Sexdecillion asked 14/7, 2011 at 17:55

7

Solved

In Bash, what are the differences between single quotes ('') and double quotes ("")?
Ackerman asked 14/7, 2011 at 17:55

7

Solved

In Bash, what are the differences between single quotes ('') and double quotes ("")?
Godlike asked 14/7, 2011 at 17:55

1

Solved

I was writing some Perl code in vim and accidentally typed a single quote character in a variable name and noticed that it highlighted it in a different color than normal single quoted strings. I ...
Evadnee asked 6/4, 2021 at 16:1

0

I have a code base with both single and double quotes all over the place. When I format my TS files all the single quotes are being converted to double quotes. I want prettier to ignore considering...

7

Solved

Is there a specific time when I should use "" vs ''? I've been using single quotes most of the time because it's easier to type but I'm not sure if I should. e.g. get 'user/new' vs. get &...
Lactone asked 18/6, 2011 at 10:12

1

Solved

I wonder if anyone has come up with a shortcut to correctly convert ALL single quotes to double quotes in a new rails project. Thank you in advance. I would do that at the end of generating new pro...
Hairsplitter asked 25/3, 2019 at 10:26

1

Solved

If I convert a single quote ' from HTML to Markdown, it is automatically escaped: % echo "'" | pandoc -f html -t markdown \' I'd like it to output without the slash, as it makes text with cont...
Botticelli asked 8/12, 2018 at 0:21

3

Solved

This is perhaps rather a minor question... but just a moment ago I was looking through some code I had written and noticed that I tend to just use ="something" and ='something_else' completely int...
Iota asked 13/12, 2013 at 17:26

1

Solved

The lintr package has a check for single-quoted strings, and single quotes are discouraged elsewhere (e.g. ?Quotes). Single and double quoted strings work identically in R, so is there a reason why...
Grating asked 24/3, 2017 at 23:33

3

Solved

Is there a keyboard shortcut to toggle between single quotes and double quotes in a Ruby code? Or a key I can set up to accept the Inspection Hint? Thanks, M.

1

I am trying to manipulate a JSON with a single quote inside, and I am having some troubles: 1.- When I have a function, I cant pass as parameter a JSON string with a single quote inside: This is ...
Ogee asked 29/12, 2015 at 8:23

2

Solved

I'm working on a big project in php and I need to make sure it's all fast. So I'm wondering: what is faster to use, " or ' ? (Eg: $_SESSION['example'] or $_SESSION["example"])
Dehumanize asked 14/12, 2015 at 15:4

1

Solved

I have 3 properties defined in my resource bundle: test.key1 = Just a normal snippet. test.key2 = snippet with {0} arguments {1}. test.key3 = snippet with 'charac'ter'. test.key4 = snippet with {0...
Dihedral asked 1/6, 2015 at 17:8

© 2022 - 2024 — McMap. All rights reserved.