Intena con este
Código PHP:
<?
Function AcomodarTXT($txt)
$txt = ereg_replace ($txt, "<", "<");
$txt = ereg_replace ($txt, ">", ">");
$txt = ereg_replace ($txt, '\n', "<BR>");
$txt = ereg_replace ($txt, " ", " ");
$txt = ereg_replace ($txt, "''", "'");
$acomodarTXT = $txt;
return $acomodarTXT;
?>
Espero te sirva