18 if (
$name ==
"XHTML 1.1" ||
$name ==
"XHTML 2.0") {
21 return preg_split(
'/\s+/', $string);
33 $allowed =
$config->get(
'Attr.AllowedClasses');
34 $forbidden =
$config->get(
'Attr.ForbiddenClasses');
36 foreach ($tokens as
$token) {
37 if (($allowed === null || isset($allowed[$token])) &&
38 !isset($forbidden[$token]) &&
41 !in_array($token,
$ret,
true)
split($path)
Returns the 'dirname' and 'basename' for a path.
Validates contents based on NMTOKENS attribute type.
Implements special behavior for class attribute (normally NMTOKENS)
filter($tokens, $config, $context)
split($string, $config, $context)