Release 2.0.1, merged in 1181 to HEAD.
[htmlpurifier.git] / library / HTMLPurifier / AttrDef / Text.php
blobc06346649b11207fef17bcfdd08b201f1c1be8c9
1 <?php
3 require_once 'HTMLPurifier/AttrDef.php';
5 /**
6 * Validates arbitrary text according to the HTML spec.
7 */
8 class HTMLPurifier_AttrDef_Text extends HTMLPurifier_AttrDef
11 function validate($string, $config, &$context) {
12 return $this->parseCDATA($string);