1
1
Fork 0

use 'ENT_QUOTES' in xmlify/unxmlify

This commit is contained in:
Fabrixxm 2014-01-20 02:59:20 -05:00
parent 1e87f4eb8c
commit 682793ccd3

View file

@ -225,7 +225,7 @@ function xmlify($str) {
$buffer = mb_ereg_replace("<", "&lt;", $buffer);
$buffer = mb_ereg_replace(">", "&gt;", $buffer);
*/
$buffer = htmlspecialchars($str);
$buffer = htmlspecialchars($str, ENT_QUOTES);
$buffer = trim($buffer);
return($buffer);
@ -246,7 +246,7 @@ function unxmlify($s) {
$ret = mb_ereg_replace('&lt;', "<", $ret);
$ret = mb_ereg_replace('&gt;', ">", $ret);
*/
$ret = htmlspecialchars_decode($s);
$ret = htmlspecialchars_decode($s, ENT_QUOTES);
return $ret;
}}