summaryrefslogtreecommitdiff
path: root/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 /utils/convert.php
Initial revision
Diffstat (limited to 'utils/convert.php')
-rw-r--r--utils/convert.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/utils/convert.php b/utils/convert.php
new file mode 100644
index 0000000..6ba1964
--- /dev/null
+++ b/utils/convert.php
@@ -0,0 +1,11 @@
+<?php
+
+function convert($message)
+{
+ $message = stripslashes($message);
+ $message = htmlspecialchars($message, ENT_QUOTES, "UTF-8");
+ // $message = utf8_encode($message);
+ return $message;
+}
+
+?> \ No newline at end of file