ePublisher Platform XSLT Extensions
 
string EscapeForXMLAttribute (string value)
 
Escape 'value' string so that it can be written as an XML attribute.
Parameters:
value
The value.
Returns:
A string.
Write onClick handler for <div> tag.
<html:div onClick="{wwstring:EscapeForXMLAttribute('alert(\'Boo!\');')}">
Click me!
</html:div>