I am in need of a regular expression that will find, and replace, a word/phrase in a string only if it\'s not in a开发者_如何转开发n [url] BBcode.
I\'m using preg_replace with an array to go through my bbcode and make the change when a news entry is posted.
I\'m writing a comment parsing function in PHP. Since BBCode is not a real markup language, I\'v never liked the writing style.
What is the function in vbulletin that convert bbcode to html ?? I found this : convert_wysiwyg_html_to_bbcode() but it\'s convert html to bbcode, I want the oppos开发者_高级运维ite of this function.
Hi im using a pretty basic bbcode parser. cou开发者_如何学Gold you guys help me with a problem of mine?
Currenlty I\'m creating a bbCodes function to replace all bbCodes by their corresponding HTML codes within a text. My code works like this atm:
I\'m trying to parse BBCode in my script. Now, it works seamelessly, until I try to indent BBCode that\'s more than just bold or underline - such as spoiler, url, font size, etc. - then it screws up.
I have a system similar to BB code whereby text within two tags is converted into a link which when hovered over produces an line image.
I really like jWYSIWYG - it\'s simple, and it works with jQuery. I also understand it\'s pretty customizable and a good ground base for custom needs -开发者_如何学运维- but the documentation is lackin
How to remove all text between BBCode Quotation (including BBCode itself): [quote date=2011-07-02 14:43:53 user=test link=1]blabla[/quote]