escapeHTML
escapeHTML() -> string
Converts HTML special characters to their entity equivalents.
Example
'<div class="article">This is an article</div>'.escapeHTML();
// -> "<div class="article">This is an article</div>"
escapeHTML() -> string
Converts HTML special characters to their entity equivalents.
'<div class="article">This is an article</div>'.escapeHTML();
// -> "<div class="article">This is an article</div>"