break;
}
}*/
-
+ /*
$buffer = mb_ereg_replace("&", "&", $str);
$buffer = mb_ereg_replace("'", "'", $buffer);
- $buffer = mb_ereg_replace("\"", """, $buffer);
+ $buffer = mb_ereg_replace('"', """, $buffer);
$buffer = mb_ereg_replace("<", "<", $buffer);
$buffer = mb_ereg_replace(">", ">", $buffer);
-
+ */
+ $buffer = htmlspecialchars($str);
$buffer = trim($buffer);
+
return($buffer);
}}
function unxmlify($s) {
// $ret = str_replace('&','&', $s);
// $ret = str_replace(array('<','>','"','''),array('<','>','"',"'"),$ret);
- $ret = mb_ereg_replace('&', '&', $s);
+ /*$ret = mb_ereg_replace('&', '&', $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);
return $ret;
}}