Cleaning up text using PHP – remove line breaks and paragraphs and tabs and replace with an empty space.
http://www.robtex.com/ip/