Aug 27
If you need to include single quotes inside a single quoted string you might try adding a backslash like most programming languages but that doesn’t work.
In the end the actual “escaping” is: ‘”‘”‘ (five quotes).
To make sure you get it ‘ ” ‘ ” ‘ without the spaces.
To take it apart:
* The first single quote ends the current single quoted string
* The double quote starts a double quoted string
* The second single quote is the one we’re escaping
* And the end of the double quoted string
* And reopening the origional single quoted string
Found on http://laptop006.livejournal.com/43340.html
Print