/home/techb158/immovalet.com/vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/HTML
NameSizeModeActions
Bool.php8730644editdlrm
Class.php14850644editdlrm
Color.php11950644editdlrm
FrameTarget.php8340644editdlrm
ID.php32040644editdlrm
Length.php12500644editdlrm
LinkTypes.php17680644editdlrm
MultiLength.php13320644editdlrm
Nmtokens.php21450644editdlrm
Pixels.php17240644editdlrm
Edit: /home/techb158/immovalet.com/vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/Color.php (1195B)
get('Core.ColorKeywords'); } $string = trim($string); if (empty($string)) { return false; } $lower = strtolower($string); if (isset($colors[$lower])) { return $colors[$lower]; } if ($string[0] === '#') { $hex = substr($string, 1); } else { $hex = $string; } $length = strlen($hex); if ($length !== 3 && $length !== 6) { return false; } if (!ctype_xdigit($hex)) { return false; } if ($length === 3) { $hex = $hex[0] . $hex[0] . $hex[1] . $hex[1] . $hex[2] . $hex[2]; } return "#$hex"; } } // vim: et sw=4 sts=4