function nohtml($string) {
$html = array (
"&" => "&",
"\"" => """,
"<" => "<",
">" => ">",
"\"" => """,
":::" => "..:"
);
for(reset($html); $key=key($html); next($html)) {
$string = str_replace("$key","$html[$key]",$string);
}
return $string;
}
function noquotes($string)
{
$html = array (
"\"" => """,
"\"" => """
);
for(reset($html); $key=key($html); next($html)) {
$string = str_replace("$key","$html[$key]",$string);
}
return $string;
}
function non($str)
{
$sometext=substr($str, 0, strlen($str)-1);
return $sometext;
}
function gns($post) {
$post=$post.".";
$post=nohtml($post);
$arr=explode("\n",$post);
for($i=0; $i <=
count($arr); $i++) {
$arra[$i]=non($arr[$i]);
}
$normal_string=join("<br>",$arra);
return $normal_string;
}
?>