diff options
Diffstat (limited to 'forum/utils/convert.php')
-rw-r--r-- | forum/utils/convert.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/forum/utils/convert.php b/forum/utils/convert.php new file mode 100644 index 0000000..2ba0afe --- /dev/null +++ b/forum/utils/convert.php @@ -0,0 +1,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; +} + +?>
\ No newline at end of file |