1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
<?php function convert_xml($message) { $message = htmlspecialchars($message, ENT_QUOTES, "UTF-8"); return $message; } function convert($message) { $message = stripslashes($message); $message = htmlspecialchars($message, ENT_QUOTES, "UTF-8"); //$message = htmlentities($message, ENT_QUOTES, "UTF-8"); // $message = utf8_encode($message); return $message; } ?>