use ereg_replace like this before you put the content into the database:
$string = ereg_replace(""",".abc",$string);
//note that ".abc" is just an arbitrary value
when spitting it out to the website:
$string = ereg_replace(".abc",""",$string);
print($string);
hope this helps.