Hypertext.php 863 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * XHTML 1.1 Hypertext Module, defines hypertext links. Core Module.
  4. */
  5. class HTMLPurifier_HTMLModule_Hypertext extends HTMLPurifier_HTMLModule
  6. {
  7. public $name = 'Hypertext';
  8. public function setup($config) {
  9. $a = $this->addElement(
  10. 'a', 'Inline', 'Inline', 'Common',
  11. array(
  12. // 'accesskey' => 'Character',
  13. // 'charset' => 'Charset',
  14. 'href' => 'URI',
  15. // 'hreflang' => 'LanguageCode',
  16. 'rel' => new HTMLPurifier_AttrDef_HTML_LinkTypes('rel'),
  17. 'rev' => new HTMLPurifier_AttrDef_HTML_LinkTypes('rev'),
  18. // 'tabindex' => 'Number',
  19. // 'type' => 'ContentType',
  20. )
  21. );
  22. $a->formatting = true;
  23. $a->excludes = array('a' => true);
  24. }
  25. }
  26. // vim: et sw=4 sts=4