17 $string = trim($string);
29 return implode(
' ', $tokens);
48 $pattern =
'/(?:(?<=\s)|\A)' .
49 '((?:--|-?[A-Za-z_])[A-Za-z_\-0-9]*)' .
51 preg_match_all($pattern, $string, $matches);
split($string, $config, $context)
Splits a space separated list of tokens into its constituent parts.
Base class for all validating attribute definitions.
filter($tokens, $config, $context)
Template method for removing certain tokens based on arbitrary criteria.
Validates contents based on NMTOKENS attribute type.
validate($string, $config, $context)