note 96427 deleted from domxpath.query by danbrown
| From: | danbrown@php.net | Date: | Fri, 26 Feb 2010 19:16:25 +0000 |
| Subject: | note 96427 deleted from domxpath.query by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-166404@lists.php.net to get a copy of this message | ||
Note Submitter: Rominet
----
Niklas, i think it is more efficient :
public function xpathescape($string) {
$result = 'concat("","';
$result .= str_replace("'", "\",\"'\",\"",
$string);
$result .= '")';
return $result;
}