]>
Commit | Line | Data |
---|---|---|
d4949327 NL |
1 | <?php\r |
2 | \r | |
3 | /**\r | |
4 | * Module adds the nofollow attribute transformation to a tags. It\r | |
5 | * is enabled by HTML.Nofollow\r | |
6 | */\r | |
7 | class HTMLPurifier_HTMLModule_Nofollow extends HTMLPurifier_HTMLModule\r | |
8 | {\r | |
9 | \r | |
10 | /**\r | |
11 | * @type string\r | |
12 | */\r | |
13 | public $name = 'Nofollow';\r | |
14 | \r | |
15 | /**\r | |
16 | * @param HTMLPurifier_Config $config\r | |
17 | */\r | |
18 | public function setup($config)\r | |
19 | {\r | |
20 | $a = $this->addBlankElement('a');\r | |
21 | $a->attr_transform_post[] = new HTMLPurifier_AttrTransform_Nofollow();\r | |
22 | }\r | |
23 | }\r | |
24 | \r | |
25 | // vim: et sw=4 sts=4\r |