$msg = text($_POST['msg']);
<?php
function text
($var)
{
return htmlspecialchars
($var, ENT_
QUOTES, 'UTF-8');
}
?>
<?php
function text
($var)
{
return htmlspecialchars
($var, ENT_
QUOTES, 'UTF-8');
}
?>