blob: 70fab5190595a695d6dce9f649c360490fb348d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
<?php
function xmlenc($message)
{
return htmlspecialchars($message, ENT_QUOTES, "UTF-8");
}
function convert($message)
{
$message = stripslashes($message);
$message = htmlspecialchars($message, ENT_QUOTES, "UTF-8");
// $message = utf8_encode($message);
return $message;
}
function convert_array($vs)
{
$vars = array();
if(sizeof($vs)) {
foreach($vs as $k => $v) {
$vars[$k] = stripslashes($v);
}
}
return $vars;
}
?>
|