← html · version 0.1.3
1 public items, in source order. Generated from the registry index, which re-derives them from the package source at publish time — so a signature here is the one that version actually ships.
pub fn escape_html(self: text) -> text
HTML-escape the standard five entities for safe interpolation into HTML output:
& → & < → < > → > " → " ' → '
Use whenever user-supplied text gets dropped into an HTML element body or attribute value. Each character is replaced once, in one pass, so the entities it writes are not escaped again within the call — but a second call escapes them.