Module
PuduLangDocgen.Markdown.Sanitize
Raw HTML reduced to inert allowed elements
Functions
| Name | Description |
|---|---|
clean |
Raw HTML with allowed elements rebuilt from their allowed attributes. Other tags, scripts, styles, and event handlers are escaped into visible text. |
clean
fn clean(html: Str) -> Str
Raw HTML with allowed elements rebuilt from their allowed attributes. Other tags, scripts, styles, and event handlers are escaped into visible text.
Parameters
htmlStr
Returns
Str