I have an html page in a string....i want to get rid of all the \n 's in the html page.....what's the best way to do this?
if \n is all you have to replace then try
$string = ereg_replace('\n', '', $string);