Skip to main content

redact

Function redact 

pub fn redact(
    content: &str,
    categories: &[RedactCategory],
) -> (String, Vec<RedactionHit>)
Expand description

Replace matches for the enabled categories with [REDACTED:<category>] placeholders. Returns the rewritten content and the list of replacements made.