Evlich
02-28-2003, 04:11 AM
Hello, I am working with an xml conversion that puts the contents of the <item> tag in quotes and uses it in a javascirpt. The only problem is, the contents of the <item> tag might contain its own quotes, Is there a way that I can, when I parse the beginning of the <item> tag, parse all the way through to the end of the tag and change the " to \"? Thanks a lot.
Example:
<item>Everyone say "Hello!"</item>
would need to be converted into:
"Everyone say \"Hello!\""
~evlich
Example:
<item>Everyone say "Hello!"</item>
would need to be converted into:
"Everyone say \"Hello!\""
~evlich