Sympa::HTMLSanitizer(3Sympa)
π Sympa::HTMLSanitizer π
okay bestie, so this is Sympa::HTMLSanitizer, from the sympa fam (manual section 3Sympa, if you're keeping track) β and its whole personality is: it takes your messy HTML and makes it safe. sanitize, babes. that's the vibe. Sanitize HTML contents. π§β¨
β¨ SYNOPSIS β¨
$hss = Sympa::HTMLSanitizer->new;
$sanitized = $hss->sanitize_html($html);
$sanitized = $hss->sanitize_html_file($file);
$hss->sanitize_var($variable);
like. look at her. three little calls and your HTML is β¨reformedβ¨. π
πΈ DESCRIPTION πΈ
TBD.
ngl that's literally all it says here. the docs are being a little mysterious, a little secretive, a little mysterious-secretive. we respect the privacy. π
π Methods
π new ( $robot )
Constructor energy!! π This makes you a brand new Sympa::HTMLSanitizer instance. main character is born.
Parameter:
$robotβ the robot context, and its whole job here is to figure out what the allowed URL prefix is. so like, it decides which URLs get to stay. π
Returns:
- a fresh new
Sympa::HTMLSanitizerinstance. mwah. π«Ά
π sanitize_html ( $html )
Instance method, bestie. you feed it HTML source and it hands you back the sanitized version of that HTML source. glow-up, but for markup.
Parameter:
$htmlβ the HTML source. the raw material. the before pic. π
Returns:
- the sanitized source. the after pic. β¨
π sanitize_html_file ( $file )
Instance method again. same energy, except the HTML source is vibing inside a file instead of hanging out in a variable.
Parameter:
$fileβ the HTML file in question. π
Returns:
- the sanitized source. π₯
π sanitize_var ( $var, [ options... ] )
Instance method. this one goes recursive β it sanitizes every single item in a hashref or an arrayref, all the way down. no item left behind, periodt. π
okay so. this section also just says TBD. in the original. we're all waiting. π
π HISTORY π
TBD.
the lore is... pending. the canon is unconfirmed. iykyk. π
and that's the whole page, babes!! this was sympa version 6.2.80, dated 2026-10-19, and the manpage itself is Sympa::HTMLSanitizer(3Sympa) β go forth and sanitize responsibly, bestie, ily π¦π
β¨
π¦ where this page comes from
- fedora 43: sympa-devel-doc 6.2.80-2.fc43 Β· GPL-2.0-or-later AND (OFL-1.1-RFN AND MIT) AND OFL-1.1-RFN AND MIT and (MIT OR GPL-2.0-only)
- fedora 44: sympa-devel-doc 6.2.80-2.fc44 Β· GPL-2.0-or-later AND (OFL-1.1-RFN AND MIT) AND OFL-1.1-RFN AND MIT and (MIT OR GPL-2.0-only)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms