MCPcopy Create free account
hub / github.com/PoiScript/orgize / HtmlEscape

Class HtmlEscape

src/export/html.rs:22–22  ·  view source on GitHub ↗

A wrapper for escaping sensitive characters in html. ```rust use orgize::export::HtmlEscape as Escape; assert_eq!(format!("{}", Escape("< < <")), "&lt; &lt; &lt;"); assert_eq!( format!("{}", Escape(" alert('Hello XSS') ")), "&lt;script&gt;alert(&apos;Hello XSS&apos;)&lt;/script&gt;" ); ```

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected