18 if (
$name ==
"XHTML 1.1" ||
$name ==
"XHTML 2.0") {
19 return parent::split($string,
$config, $context);
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)
Validates contents based on NMTOKENS attribute type.
Implements special behavior for class attribute (normally NMTOKENS)
Create styles array
The data for the language used.
filter($tokens, $config, $context)
split($string, $config, $context)