Nofollow.php 410 B

12345678910111213141516171819
  1. <?php
  2. /**
  3. * Module adds the nofollow attribute transformation to a tags. It
  4. * is enabled by HTML.Nofollow
  5. */
  6. class HTMLPurifier_HTMLModule_Nofollow extends HTMLPurifier_HTMLModule
  7. {
  8. public $name = 'Nofollow';
  9. public function setup($config) {
  10. $a = $this->addBlankElement('a');
  11. $a->attr_transform_post[] = new HTMLPurifier_AttrTransform_Nofollow();
  12. }
  13. }
  14. // vim: et sw=4 sts=4