parse() final public method

It may return NULL as a valid type if $allow_null is true.
final public parse ( mixed $var, integer $type, boolean $allow_null = false ) : string
$var mixed Variable to validate
$type integer Type of variable, see HTMLPurifier_VarParser->types
$allow_null boolean Whether or not to permit null as a value
return string Validated and type-coerced variable
 /** @deprecated, use HTMLPurifier_VarParser->parse() */
 public function validate($a, $b, $c = false)
 {
     trigger_error("HTMLPurifier_ConfigSchema->validate deprecated, use HTMLPurifier_VarParser->parse instead", E_USER_NOTICE);
     $parser = new HTMLPurifier_VarParser();
     return $parser->parse($a, $b, $c);
 }