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] Link to comment https://forums.phpfreaks.com/topic/107936-solved-unselecting-a-section-of-a-string-for-parsing/ 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 Link to comment https://forums.phpfreaks.com/topic/107936-solved-unselecting-a-section-of-a-string-for-parsing/#findComment-553277 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]. Link to comment https://forums.phpfreaks.com/topic/107936-solved-unselecting-a-section-of-a-string-for-parsing/#findComment-553280 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. Link to comment https://forums.phpfreaks.com/topic/107936-solved-unselecting-a-section-of-a-string-for-parsing/#findComment-553298 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.