summaryrefslogtreecommitdiff
path: root/forum/utils/convert.php
diff options
context:
space:
mode:
authordeva <deva>2008-10-04 10:38:03 +0000
committerdeva <deva>2008-10-04 10:38:03 +0000
commitcce5e7710295021b41d9aaecc503a60fb99256be (patch)
tree660235be91fb821e976c7ae62347eb368ce87524 /forum/utils/convert.php
Initial revision
Diffstat (limited to 'forum/utils/convert.php')
-rw-r--r--forum/utils/convert.php18
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