BillyBoB Posted May 30, 2008 Share Posted May 30, 2008 I am building a small bbcode parser, mostly to see if I can, and I have ran into the problem of the tag. I want HTML in the section surrounded by the [code] tags but no where else. If I use strip_tags I would have to unselect the part with the tags and remove HTML and put it all back together. Is there an easy way of doing this? Could someone point me in the right direction? [/code] Quote Link to comment Share on other sites More sharing options...
Gighalen Posted May 30, 2008 Share Posted May 30, 2008 Erm, could you possibly repost this? Well not repost, but reply so that we can see what you meant to say Quote Link to comment Share on other sites More sharing options...
BillyBoB Posted May 30, 2008 Author Share Posted May 30, 2008 Sorry about that should have previewed. I am building a small bbcode parser, mostly to see if I can, and I have ran into the problem of the code tag. I want HTML in the section surrounded by the code tags but no where else. If I use strip_tags I would have to unselect the part with the tags and remove HTML and put it all back together. Is there an easy way of doing this? Could someone point me in the right direction? When I'm referring to the code tag I mean [ code]. Quote Link to comment Share on other sites More sharing options...
BillyBoB Posted May 30, 2008 Author Share Posted May 30, 2008 Ok well I have been working on this for a while now and I have finished it. If anyone would like to know the solution then just ask. This one problem took me 1 hour to work out.... it's kinda sad. 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.