sub html_escape
{
my $text = shift;
return '' unless $text;
#$text =~ s{\;}{#59;}gso;
$text =~ s{&}{&}gso;
#$text =~ s{#59;}{;}gso;
$text =~ s{"}{"}gso;
$text =~ s{ }{ \ }gso;
$text =~ s{\*}{*}gso;
$text =~ s{<}{<}gso;
$text =~ s{>}{>}gso;
$text =~ s{'}{'}gso;
$text =~ s{\)}{)}gso;
$text =~ s{\(}{(}gso;
$text =~ s{\\}{\}gso; # need this!
$text =~ s{\t}{ \ \ \ }gso;
$text =~ s{\|}{\|}gso; # going to keep this
$text =~ s{\n}{
}gso;
$text =~ s{\cM}{}gso;
return $text;
}