use 'ENT_QUOTES' in xmlify/unxmlify
This commit is contained in:
parent
1e87f4eb8c
commit
682793ccd3
1 changed files with 2 additions and 2 deletions
|
@ -225,7 +225,7 @@ function xmlify($str) {
|
||||||
$buffer = mb_ereg_replace("<", "<", $buffer);
|
$buffer = mb_ereg_replace("<", "<", $buffer);
|
||||||
$buffer = mb_ereg_replace(">", ">", $buffer);
|
$buffer = mb_ereg_replace(">", ">", $buffer);
|
||||||
*/
|
*/
|
||||||
$buffer = htmlspecialchars($str);
|
$buffer = htmlspecialchars($str, ENT_QUOTES);
|
||||||
$buffer = trim($buffer);
|
$buffer = trim($buffer);
|
||||||
|
|
||||||
return($buffer);
|
return($buffer);
|
||||||
|
@ -246,7 +246,7 @@ function unxmlify($s) {
|
||||||
$ret = mb_ereg_replace('<', "<", $ret);
|
$ret = mb_ereg_replace('<', "<", $ret);
|
||||||
$ret = mb_ereg_replace('>', ">", $ret);
|
$ret = mb_ereg_replace('>', ">", $ret);
|
||||||
*/
|
*/
|
||||||
$ret = htmlspecialchars_decode($s);
|
$ret = htmlspecialchars_decode($s, ENT_QUOTES);
|
||||||
return $ret;
|
return $ret;
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue