1: <?php
2:
3: 4: 5:
6: class HTMLPurifier_HTMLModule_Hypertext extends HTMLPurifier_HTMLModule
7: {
8:
9: public $name = 'Hypertext';
10:
11: public function setup($config) {
12: $a = $this->addElement(
13: 'a', 'Inline', 'Inline', 'Common',
14: array(
15:
16:
17: 'href' => 'URI',
18:
19: 'rel' => new HTMLPurifier_AttrDef_HTML_LinkTypes('rel'),
20: 'rev' => new HTMLPurifier_AttrDef_HTML_LinkTypes('rev'),
21:
22:
23: )
24: );
25: $a->formatting = true;
26: $a->excludes = array('a' => true);
27: }
28:
29: }
30:
31:
32: