louis567 Posted January 15, 2009 Share Posted January 15, 2009 Hello. I'm new to PHP (well I used it back in the day but switched to coldfusion and now back to php; life story aside...) I need some regex that will find any unclosed tag and remove that tag. Would anyone be able to help? Thanks Louis Quote Link to comment Share on other sites More sharing options...
effigy Posted January 15, 2009 Share Posted January 15, 2009 How about tidy? Quote Link to comment Share on other sites More sharing options...
louis567 Posted January 15, 2009 Author Share Posted January 15, 2009 Ohh that could be an option. Would be nice if regex could do it though. Plus some hosts may not support it. Quote Link to comment Share on other sites More sharing options...
effigy Posted January 15, 2009 Share Posted January 15, 2009 Without the proper tools, nesting is always an issue. What if the tag has data, do you want to close it rather than remove it? Quote Link to comment Share on other sites More sharing options...
louis567 Posted January 15, 2009 Author Share Posted January 15, 2009 I just wanted to remove the tag Quote Link to comment Share on other sites More sharing options...
louis567 Posted January 15, 2009 Author Share Posted January 15, 2009 Found a solution. TinyMCE 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.