Text.php 269 B

123456789101112131415
  1. <?php
  2. /**
  3. * Validates arbitrary text according to the HTML spec.
  4. */
  5. class HTMLPurifier_AttrDef_Text extends HTMLPurifier_AttrDef
  6. {
  7. public function validate($string, $config, $context) {
  8. return $this->parseCDATA($string);
  9. }
  10. }
  11. // vim: et sw=4 sts=4