You are here

private function QueryPathCssEventHandler::removeQuotes in QueryPath 6

Same name and namespace in other branches
  1. 7.3 QueryPath/CssEventHandler.php \QueryPathCssEventHandler::removeQuotes()
  2. 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

QueryPathCssEventHandler

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;
}