File indexing completed on 2024-05-12 06:02:05

0001 <?php
0002 
0003 /**
0004  * Module adds the nofollow attribute transformation to a tags.  It
0005  * is enabled by HTML.Nofollow
0006  */
0007 class HTMLPurifier_HTMLModule_Nofollow extends HTMLPurifier_HTMLModule
0008 {
0009 
0010     /**
0011      * @type string
0012      */
0013     public $name = 'Nofollow';
0014 
0015     /**
0016      * @param HTMLPurifier_Config $config
0017      */
0018     public function setup($config)
0019     {
0020         $a = $this->addBlankElement('a');
0021         $a->attr_transform_post[] = new HTMLPurifier_AttrTransform_Nofollow();
0022     }
0023 }
0024 
0025 // vim: et sw=4 sts=4