Re: preg_match_all to match <img> tags

From: Date: Sat, 11 Aug 2007 18:14:51 +0000
Subject: Re: preg_match_all to match <img> tags
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-260698@lists.php.net to get a copy of this message
How can i match an image tag correctly so it does not cause any issues with how the user adds the image.
preg_match_all('/<img[^>]*>/Ui'); Off the top of my head. This wouldn't allow for using the right angle bracket in the img tag, but that's almost never going to happen in reailty. -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support

« previous php.general (#260698) next »