Escape the five HTML special characters so a string renders as inert text in any HTML context (element body or attribute value).
Pure string operation — no DOM dependency.
The string to escape.
The HTML-escaped string.
Escape the five HTML special characters so a string renders as inert text in any HTML context (element body or attribute value).
Pure string operation — no DOM dependency.