escaping double quote

vkrejcirik vkrejcirik at gmail.com
Sun Mar 8 14:48:39 PDT 2009


I need to escape double quote in function replace.
My code:

var text = currentNode.In.Content.replace(/</g, "&lt;").replace(/>/g, 
"&gt;").replace(/"/g,"&quot;");

but problem is in /"/g.
Do you have any idea?
thanks

-- 
/**************************************/
Best regards / S pozdravem
Vladislav Krejčiřík

http://www.vkrejcirik.info



More information about the Es-discuss mailing list