11 public function validate($string, $config, $context) {
13 static $allowed_values = array(
14 'line-through' =>
true,
19 $string = strtolower($this->
parseCDATA($string));
21 if ($string ===
'none')
return $string;
23 $parts = explode(
' ', $string);
25 foreach ($parts as $part) {
26 if (isset($allowed_values[$part])) {
27 $final .= $part .
' ';
30 $final = rtrim($final);
31 if ($final ===
'')
return false;