File indexing completed on 2025-01-26 05:29:07
0001 <?php 0002 0003 /** 0004 * XHTML 1.1 Hypertext Module, defines hypertext links. Core Module. 0005 */ 0006 class HTMLPurifier_HTMLModule_Hypertext extends HTMLPurifier_HTMLModule 0007 { 0008 0009 /** 0010 * @type string 0011 */ 0012 public $name = 'Hypertext'; 0013 0014 /** 0015 * @param HTMLPurifier_Config $config 0016 */ 0017 public function setup($config) 0018 { 0019 $a = $this->addElement( 0020 'a', 0021 'Inline', 0022 'Inline', 0023 'Common', 0024 array( 0025 // 'accesskey' => 'Character', 0026 // 'charset' => 'Charset', 0027 'href' => 'URI', 0028 // 'hreflang' => 'LanguageCode', 0029 'rel' => new HTMLPurifier_AttrDef_HTML_LinkTypes('rel'), 0030 'rev' => new HTMLPurifier_AttrDef_HTML_LinkTypes('rev'), 0031 // 'tabindex' => 'Number', 0032 // 'type' => 'ContentType', 0033 ) 0034 ); 0035 $a->formatting = true; 0036 $a->excludes = array('a' => true); 0037 } 0038 } 0039 0040 // vim: et sw=4 sts=4