tvdhoff Posted September 16, 2006 Share Posted September 16, 2006 Hi all,I need to strip all HTML tags from user input, save and .I'm trying regular expressions, but am having big trouble getting those to work.I thought of something like this (if found a tag with something else then 'i' remove tag): preg_replace(?(?=<[^i]+>)"");But that doesn't work.How would I go about that?Thanks a lot!Tim Quote Link to comment Share on other sites More sharing options...
effigy Posted September 16, 2006 Share Posted September 16, 2006 [url=http://us3.php.net/strip_tags]strip_tags[/url] Quote Link to comment Share on other sites More sharing options...
tvdhoff Posted September 16, 2006 Author Share Posted September 16, 2006 d-oh...thanks! Quote Link to comment Share on other sites More sharing options...
yungbloodreborn Posted September 21, 2006 Share Posted September 21, 2006 Perfect! just what I needed,and I didn't even have to ask... :)-YB Quote Link to comment 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.