DOKK / manpages / debian 10 / sympa / Sympa::HTMLDecorator.3sympa.en
Sympa::HTMLDecorator(3Sympa) sympa 6.2.40 Sympa::HTMLDecorator(3Sympa)

Sympa::HTMLDecorator - Decorating HTML texts

  use Sympa::HTMLDecorator;
  $decorator = Sympa::HTMLDecorator->instance;
  $ouput = $decorator->decorate($html, email => 'javascript');

Sympa::HTMLDecorator transforms HTML texts.

Constructor. Returns singleton instance of this class.
Instance method. Modifies HTML text.

Parameters:

$html
A text including HTML document or fragment. It must be encoded by UTF-8.
Transformation mode. 'at' replaces "@" in email addresses. 'javascript' obfuscates emails using JavaScript code.

Returns:

Modified text.

Sympa::HTMLSanitizer.

Sympa::HTMLDecorator appeared on Sympa 6.2.14.

2020-12-10 6.2.40