File indexing completed on 2024-12-22 05:36:19
0001 <?php 0002 0003 /** 0004 * Validates arbitrary text according to the HTML spec. 0005 */ 0006 class HTMLPurifier_AttrDef_Text extends HTMLPurifier_AttrDef 0007 { 0008 0009 /** 0010 * @param string $string 0011 * @param HTMLPurifier_Config $config 0012 * @param HTMLPurifier_Context $context 0013 * @return bool|string 0014 */ 0015 public function validate($string, $config, $context) 0016 { 0017 return $this->parseCDATA($string); 0018 } 0019 } 0020 0021 // vim: et sw=4 sts=4