0

Quoted line inside of string

"Brian's mother said: \"Is that any way to treat a lady?\"" Prints out as 'Brian\'s mother said: "Is that any way to treat a lady?"' Most of the string is correct but in the case of the "Brian's" part, no matter if I put in "Brian\'s" or "Brian's"... It prints out the same. 'Brian\'s mother said: "Is that any way to treat a lady?"'. How would you fix that?

30th Dec 2016, 1:32 PM
sjb11946
1 Antwort
0
use 3 ' at beginning and end and you dont have to escape. you can do with this a multiline comment in your code too.
30th Dec 2016, 6:15 PM
THDevelop
THDevelop - avatar