renieravin Posted December 31, 2008 Share Posted December 31, 2008 Hi, I'm new to regex, and I've been looking for a solution to this hours now - something I did not expect! ??? I'm using PHP and I have a discussion forum where I use TinyMCE to post comments. The user is allowed to insert emoticons, which are stored on my server. (Example path: http://www.mysite.com/tinymce/images/emoticons/smiley.gif) How do I strip all <img> tags from the comment, EXCEPT the images coming from my own domain? (www.mysite.com/tinymce/images/emoticons/) Thanks in advance! Quote Link to comment https://forums.phpfreaks.com/topic/138973-strip-image-tags-except-when-src-is-own-domain/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.