summaryrefslogtreecommitdiff
path: root/utils/convert.php
diff options
context:
space:
mode:
authordeva <deva>2010-02-28 13:06:39 +0000
committerdeva <deva>2010-02-28 13:06:39 +0000
commit9cff69d330760c133d2b22c96da7a89e319b2362 (patch)
tree2fcaf78432ed03a092b1b57e9155c0c294c03eab /utils/convert.php
parent5b272cd81712a01fceb946682bb99f8402c070df (diff)
Better control of xml enconding... still a lot of testing to do though.
Diffstat (limited to 'utils/convert.php')
-rw-r--r--utils/convert.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/utils/convert.php b/utils/convert.php
index 4471e8f..70fab51 100644
--- a/utils/convert.php
+++ b/utils/convert.php
@@ -1,5 +1,10 @@
<?php
+function xmlenc($message)
+{
+ return htmlspecialchars($message, ENT_QUOTES, "UTF-8");
+}
+
function convert($message)
{
$message = stripslashes($message);
@@ -14,7 +19,7 @@ function convert_array($vs)
if(sizeof($vs)) {
foreach($vs as $k => $v) {
- $vars[$k] = convert($v);
+ $vars[$k] = stripslashes($v);
}
}