Sympa::HTMLDecorator(3Sympa)
π Sympa::HTMLDecorator(3Sympa) β Decorating HTML texts π
okay bestie, pull up a chair, we're talking about Sympa::HTMLDecorator, from the sympa fam, and it is exactly what it sounds like: it takes your HTML and it decorates it. glam it up. do a little something to it. no cap. π
β¨ SYNOPSIS β¨
the vibe, in code form:
use Sympa::HTMLDecorator;
$decorator = Sympa::HTMLDecorator->instance;
$ouput = $decorator->decorate($html, email => 'javascript');
(yes $ouput β that's what it says, that's canon, i don't make the rules π
)
πΈ DESCRIPTION πΈ
Sympa::HTMLDecorator transforms HTML texts. that's it, that's the whole job description. it's giving ~transformation era~ π¦
π§ Methods π§
instance ( )β the constructor, bestie. hands you back a singleton instance of this class. one instance. just the one. main character energy only πdecorate ( $html, email => $mode )β instance method β¨ it modifies your HTML text. here's the tea on the parameters:$htmlβ a text that has an HTML document or just a fragment in it, either way. important: it must be encoded by UTF-8. non-negotiable, she has standards πemail => $modeβ the transformation mode, i.e. how hard we're gonna go on them emails:'at'β replaces"@"in email addresses π'javascript'β obfuscates emails using JavaScript code π (sneaky lil thing, love that for her)
and what do you get back? Modified text. that's the return. dramatic silence. π
π SEE ALSO π
Sympa::HTMLSanitizer. go say hi, they're in the same friend group π«Ά
π HISTORY π
Sympa::HTMLDecorator appeared on Sympa 6.2.14. an icon since day one, fr fr β
like, comment, subscribe, and remember: this whole thing is from sympa 6.2.80, dated 2026-10-19, and it says Sympa::HTMLDecorator(3Sympa) at the bottom so you know it's official. periodt π
πΈπ
π¦ 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