protected static function QueryPathEntities::doReplacement in QueryPath 6
Same name and namespace in other branches
- 7.3 QueryPath/QueryPath.php \QueryPathEntities::doReplacement()
- 7.2 QueryPath/QueryPath.php \QueryPathEntities::doReplacement()
File
- QueryPath/
QueryPath.php, line 2074
Class
Code
protected static function doReplacement($matches) {
$count = count($matches);
switch ($count) {
case 2:
return '&#' . self::replaceEntity($matches[1]) . ';';
case 3:
case 4:
return '&#' . $matches[$count - 1] . ';';
case 5:
return '&';
}
}