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::HTMLSanitizer instance. 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