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?
1 Réponse
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.