Re: Stripping carriage returns

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Jan 11, 2011, at 11:34 AM, Richard S. Crawford wrote:

> Strangely, when I use \n, or nl2br(), or PHP_EOL, or anything like that, it
> strips out not just line breaks, but most of the rest of the text as well. I
> suspect an encoding issue at this point.
> 
> Daniel, you were right when you said that neither of my str_replace lines
> had repl.acement values; that was indeed a typo when I was copying the code
> over into my email.
> 
> Ashley, I've already been using strip_tags to eliminate all but <p>, <ol>,
> <ul>, and <li> tags.
> 

Perhaps you could use tidy to clean up the formatting  (use -wrap 0) before attempting to strip out the stuff you want to get rid of.

Mari
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux