HTMLPurifier 4.4.0
/home/ezyang/Dev/htmlpurifier/library/HTMLPurifier/HTMLModule/Hypertext.php
Go to the documentation of this file.
00001 <?php
00002 
00006 class HTMLPurifier_HTMLModule_Hypertext extends HTMLPurifier_HTMLModule
00007 {
00008 
00009     public $name = 'Hypertext';
00010 
00011     public function setup($config) {
00012         $a = $this->addElement(
00013             'a', 'Inline', 'Inline', 'Common',
00014             array(
00015                 // 'accesskey' => 'Character',
00016                 // 'charset' => 'Charset',
00017                 'href' => 'URI',
00018                 // 'hreflang' => 'LanguageCode',
00019                 'rel' => new HTMLPurifier_AttrDef_HTML_LinkTypes('rel'),
00020                 'rev' => new HTMLPurifier_AttrDef_HTML_LinkTypes('rev'),
00021                 // 'tabindex' => 'Number',
00022                 // 'type' => 'ContentType',
00023             )
00024         );
00025         $a->formatting = true;
00026         $a->excludes = array('a' => true);
00027     }
00028 
00029 }
00030 
00031 // vim: et sw=4 sts=4