Skip to main content

Module xml

Module xml 

Source

Functionsยง

escape_xml
Escape XML/HTML special characters for safe interpolation into element text content (between tags). Use when untrusted strings (process stdout, user input, external data) go inside <tag>${here}</tag>.
escape_xml_attr
Escape for interpolation into a double- or single-quoted attribute value: <tag attr="${here}">. Escapes quotes in addition to & < >.