23 $string = trim($string);
24 $is_important =
false;
26 if (strlen($string) >= 9 && substr($string, -9) ===
'important') {
27 $temp = rtrim(substr($string, 0, -9));
29 if (strlen($temp) >= 1 && substr($temp, -1) ===
'!') {
30 $string = rtrim(substr($temp, 0, -1));
34 $string = $this->def->validate($string,
$config, $context);
35 if ($this->allow && $is_important) $string .=
' !important';