27 return preg_replace(
'#'.$quotes.
'#',
'', $value);
42 return preg_replace(
'#[^'.$allow.
']#',
'',
$name);
const EXTENDED_ALPHANUMERIC
static filterAttrName($name, $allow=self::EXTENDED_ALPHANUMERIC)
Filter an attribute name for save inclusion in an XPath query.
static filterAttrValue($value, $quotes=self::ALL_QUOTES)
Filter an attribute value for save inclusion in an XPath query.