Re: [PHP] Removing HTML codes using regexp

2001-02-25 Thread Simon Garner
From: "Toke Herkild" <[EMAIL PROTECTED]> > 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... > > Try striptags() http:

[PHP] Removing HTML codes using regexp

2001-02-25 Thread Toke Herkild
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... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL