Monday, May 31, 2010

Escape Double Quotes in JS

Ok so it seems like I'm doing some coding again. Here's how to escape a double quote in JavaScript from PHP:


onclick=\"addParameter('fun\\x22 and \\x22 games');\"

Followers