Text cleaning?
| From: | Karl Timmermann | Date: | Sat, 28 Feb 2004 05:09:17 +0000 |
| Subject: | Text cleaning? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-179048@lists.php.net to get a copy of this message | ||
Does anyone have some PHP code to remove incorrect carriage returns?
Example:
Sentence should be "Hi, my name is Karl and I like PHP."
but is: "Hi, my name is Karl and I like
PHP."
or
"Hi my name is Karl and
I like PHP."
I think I saw some code before that does it, but can't find it anywhere.
Thanks!
Karl