[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] adding escaping slashes
Subject: Re: [xsl] adding escaping slashes
From: Joe Stump <joe@xxxxxxxxxxxx>
Date: Wed, 29 Jun 2005 16:39:06 -0700
|
http://www.scribeserver.com/NEUMES/xml/NeumesXSLT_doc.htm#EscApos
Worked like a charm.
--Joe
On Jun 29, 2005, at 4:12 PM, Joe Stump wrote:
I've got some text (ie. <b>Joe's Diner</b>) that needs to be
translated into something along the lines of the following:
<a onClick="doSomething('Joe\'s Diner');">Joe's Diner</a>
I've got everything working, but how to do the equivalent of PHP's
addslashes() to the text() of an element is causing me some
problems. Anyone have any ideas how to add escaping slashes to a
text node?
Thanks!
--Joe
|