function strip_html ($text = "")
{
if( (!$text) or (empty($text)) )
{
return "";
}
$outside = true;
$rawText = "";
$length = strlen($text);
$count = 0;
for($count=0; $count < $length; $count++)
{
$digit = substr($text,$count,1);
if(!empty($digit))
{
if( ($outside) and ($digit != "<") and ($digit != ">") )
{
$rawText .= $digit;
}
if($digit == "<")
{
$outside = false;
}
if($digit == ">")
{
$outside = true;
}
}
}
return $rawText;
}