qie.unescapeXml¶
Signature: qie.unescapeXml(value)
Returns: String unescapedValue - the unescaped value
Unescape the XML escaped value.
Parameters¶
| Type | Name | Description | Default |
|---|---|---|---|
| String | value | the value to be unescaped |
Example¶
// message.setNode/getNode automatically handle XML escaping,
// so unescapeXml is only needed for raw XML-escaped values
// obtained from files, databases, or external systems.
var xmlMessage = '' +
'<?xml version="1.0" encoding="UTF-8"?>\n' +
'<bookstore>\n' +
' <book category="fiction">\n' +
' <title lang="en">The > Gatsby</title>\n' +
' <author>F. Scott Fitzgerald & Hermione Granger</author>\n' +
' <year>@1925</year>\n' +
' <price>$10.99</price>\n' +
' </book>\n' +
'</bookstore>';
var escapedXml = qie.escapeXml(xmlMessage);
var unescapedXml = qie.unescapeXml(qie.escapeXml(xmlMessage));