http.forms.html_escape

http.forms

html_escape(str) -> escaped

Escape a string for safe embedding in HTML text or a quoted attribute

Replaces the five HTML specials: & with &amp;, < with &lt;, > with &gt;, " with &quot; and ' with &#39;.

One pass escapes each character once, so an entity in the input is escaped as text: &amp; gives &amp;amp;. It is not an HTML sanitizer.