jackpf Posted February 19, 2009 Share Posted February 19, 2009 Hi all, Just wondering, is there a way to use preg_replace() to replace tags which aren't closed in the right order? For example- If someone were to have [colour=red]redblue[/colour][/colour] I've noticed that preg_replace() can't handle it, and cuts out one of the tags... Thanks for any help, Jack. Link to comment https://forums.phpfreaks.com/topic/145838-multiple-occurances-of-bbcodepreg_replace/ Share on other sites More sharing options...
jackpf Posted February 19, 2009 Author Share Posted February 19, 2009 Thats supposed to have a colour=blue tage where it goes blue btw Link to comment https://forums.phpfreaks.com/topic/145838-multiple-occurances-of-bbcodepreg_replace/#findComment-765709 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.