View Full Version : How to remove BBCode from string?
Jaxel
05-07-2010, 05:14 AM
Okay... I have a string... I want to print the string, but I want to strip all BBCode from it first... How would I do this?
Ryan Ashbrook
05-07-2010, 02:45 PM
class_bbcode or class_bbcode_alt should have a method that strips BB Code from any string passed through it. Start there.
If not, then look into the do_parse method to see if there is a flag that will strip them.
Jaxel
05-07-2010, 03:47 PM
I've checked through it... can't find anything
Jaxel
05-09-2010, 03:48 AM
So anyone got any ideas?
Jaxel
05-11-2010, 03:44 AM
So no one knows how to strip bbcode from a string? I figured this would have been a built in function...
Lynne
05-11-2010, 03:47 AM
Did you try looking up the function strip_bbcode? (The API is helpful when looking for functions - it's in the Quick Links drop down.)
Jaxel
05-11-2010, 02:02 PM
Thanks Lynne... I didnt even know that API existed...
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.