note 106545 deleted from domxpath.query by thiago
| From: | thiago@php.net | Date: | Mon, 28 Nov 2011 12:10:23 +0000 |
| Subject: | note 106545 deleted from domxpath.query by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-184735@lists.php.net to get a copy of this message | ||
Note Submitter: imoore76 at yahoo dot com
----
Ooops, that was broken :) This works:
<?php
function xpathConcatEscape($string) {
return
"concat(".str_replace(array("'',",",''"),
"",
"'".implode("',\"'\",'",explode("'",$string))."'")
.")";
}
?>
Again.. I hate xpath :( This should not be needed.