Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript escape single quote

var string = 'this isn't a double quoted string';
var string = "this isn"t a single quoted string";
//           ^         ^ same types, hence we need to escape it with a backslash
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #escape #single #quote
ADD COMMENT
Topic
Name
5+7 =