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

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top