private function QueryPathCssEventHandler::removeQuotes in QueryPath 6
Same name and namespace in other branches
- 7.3 QueryPath/CssEventHandler.php \QueryPathCssEventHandler::removeQuotes()
- 7.2 QueryPath/CssEventHandler.php \QueryPathCssEventHandler::removeQuotes()
1 call to QueryPathCssEventHandler::removeQuotes()
- QueryPathCssEventHandler::pseudoClass in QueryPath/
CssEventHandler.php
File
- QueryPath/
CssEventHandler.php, line 496
Class
Code
private function removeQuotes($str) {
$f = substr($str, 0, 1);
$l = substr($str, -1);
if ($f === $l && ($f == '"' || $f == "'")) {
$str = substr($str, 1, -1);
}
return $str;
}