summaryrefslogtreecommitdiff
path: root/forum/utils/convert.php
blob: 2ba0afe8b680b1f04385d8fcd57cc100bf8f9794 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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;
}

?>