Expand description
HTML and attribute string escaping helpers.
Functionsยง
- escape_
attr - Escapes characters unsafe within an HTML attribute value (
<,>,&,"), returning the input unchanged (borrowed) when no escaping is needed. - escape_
html - Escapes characters unsafe within HTML text content (
<,>,&), returning the input unchanged (borrowed) when no escaping is needed.