this function should do the work
function html_special_chars_2_ascii($text,$table)
{
/
1 argument = string
2 argument = HTML_ENTITIES or HTML_SPECIALCHARS
example
$text = html_special_chars_2_ascii($text,HTML_ENTITIES);"
/
$trans = get_html_translation_table ("$table",ENT_QUOTES);
$trans = array_flip ($trans);
$text = strtr ($text, $trans);
return $text;
}