Module

PuduLangDocgen.Markdown.Sanitize

View source

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

html
Str

Returns

Str

View source