Skip to main content

clean

Function clean 

Source
pub fn clean(raw_html: &str, max_chars: usize) -> CleanResult
Expand description

Clean raw HTML into LLM-ready plain text.

Standalone and synchronous — no network or config required. Uses the two-stage pipeline: HTML noise removal → text sterilization.