how to escape a string with XSL?

W

Wizfrog

I see a lot of posts here about output of escaped data, and it seems
like the <xsl:text disable-output-escaping="yes"> will do the trick...

but I have the reverse problem:

I have data I want to escape, especially the ' and " characters as i
use the output in a javascript string and those characters just mess
up the code.

is there any easy way to escape the quotes and double quotes?

thanks for help
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top