Skip to main content

Module sanitize

Module sanitize 

Source
Expand description

HTML sanitization for safe terminal and file output (PRD §41).

All extracted HTML must pass through sanitize_html() before display. Uses the ammonia crate (the same library used by crates.io itself).

Functions§

sanitize_html
Sanitize HTML for safe display.
sanitize_to_text
Strip ALL HTML tags, returning plain text only.