The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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?
|
|
#2
|
||||
|
||||
|
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. |
|
#3
|
|||
|
|||
|
I've checked through it... can't find anything
|
|
#4
|
|||
|
|||
|
So anyone got any ideas?
|
|
#5
|
|||
|
|||
|
So no one knows how to strip bbcode from a string? I figured this would have been a built in function...
|
|
#6
|
||||
|
||||
|
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.)
|
|
#7
|
|||
|
|||
|
Thanks Lynne... I didnt even know that API existed...
|
![]() |
|
|