Skip to main content

Module html

Module html 

Source
Expand description

AST to HTML rendering.

The renderer is safe by default: raw HTML is escaped, dangerous protocols are blanked, and image src values use the same protocol filter unless explicitly relaxed through HtmlOptions.

Structs§

HtmlOptions
HTML rendering options. The default is safe: raw HTML is escaped, dangerous link/image protocols are blanked, and task-list checkboxes are disabled.

Enums§

HtmlError
Why HTML rendering failed.
SafeRawHtmlForm
How raw HTML is handled in safe mode (when allow_dangerous_html is off).
TasklistAttrOrder
The attribute order on disabled task-list checkbox inputs (an oracle-parity convention).