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>
Was this helpful?
Last modified date: 10/14/2020