Removing HTML codes using regexp
| From: | Toke Herkild | Date: | Mon, 26 Feb 2001 07:52:52 +0000 |
| Subject: | Removing HTML codes using regexp | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-41608@lists.php.net to get a copy of this message | ||
What if I want to replace all html codes from a string ?
I've tried using :
$myString = preg_replace('/<*>/, '', $myString);
but that deletes all string... ( or everything from first '<' ) ...
Toke Herkild...