Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Sympa::HTMLDecorator(3Sympa)	 sympa 6.2.16	  Sympa::HTMLDecorator(3Sympa)

NAME
       Sympa::HTMLDecorator - Decorating HTML texts

SYNOPSYS
	 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.  Modifys 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.

6.2.16				  2016-02-26	  Sympa::HTMLDecorator(3Sympa)

NAME | SYNOPSYS | DESCRIPTION | SEE ALSO | HISTORY

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Sympa::HTMLDecorator&sektion=3sympa&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help