Sympa documentation licensed under GPL
Sympa::HTMLDecorator - Decorating HTML texts
use Sympa::HTMLDecorator;
$decorator = Sympa::HTMLDecorator->instance;
$ouput = $decorator->decorate($html, email => 'javascript');
Sympa::HTMLDecorator transforms HTML texts.
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.
Sympa::HTMLDecorator appeared on Sympa 6.2.14.
The content of this page is automatically generated from the source distribution of Sympa. For details about this document see original source file.
Theme originally designed by orderedlist