I use this code to parse BBcode:
But I can't figure out how to parse url tags due to them having to correspond as so:Code:$thedescription=str_replace("[b]","<b>",$thedescription);
Because ] can be generic, I cannot replace ] with ">Code:[url= <a href=" ] ">
...so any help?



Reply With Quote

Bookmarks