Sympa::HTMLDecorator.3Sympa - Man Page
Decorating HTML texts
Synopsis
use Sympa::HTMLDecorator; $decorator = Sympa::HTMLDecorator->instance; $ouput = $decorator->decorate($html, email => 'javascript');
Description
Sympa::HTMLDecorator transforms HTML texts.
Methods
- instance ( )
Constructor. Returns singleton instance of this class.
- decorate ( $html, email => $mode )
Instance method. Modifies HTML text.
Parameters:
- $html
A text including HTML document or fragment. It must be encoded by UTF-8.
- email => $mode
Transformation mode.
'at'
replaces@
in email addresses.'javascript'
obfuscates emails using JavaScript code.
Returns:
Modified text.
See Also
Sympa::HTMLSanitizer.
History
Sympa::HTMLDecorator appeared on Sympa 6.2.14.
Info
2024-08-22 sympa 6.2.72