Skip to content

qie.escapeHtml

Signature: qie.escapeHtml(value)

Returns: String escapedValue - the escaped value

Escape the value for HTML format.

Parameters

Type Name Description Default
String value the value to be escaped

Example

var html = qie.parseXMLString('<html><head></head><body>' +
    '<div class="container">' +
    '  <span id="greeting">Hello, World!</span>' +
    '</div>' +
    '</body></html>');

html.setNode("//span", qie.escapeHtml("Hello <O'Reilly & Co>"));