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