how to wrap bbcode ?
Posted: Sun Apr 29, 2007 11:51 am
hi there.. this is my first post here, and i'm sorry if i wrote on the wrong area..
i need a script which to delete the bbcode from my messages..
let's say that i have:..
i need to return only .. without the bbcode..
so far, i thought i might use this:
but i have a problem if in the database will appear new bbcode.. [yt][/yt] as example..
how can i delete all the code between "[" "]" ?
thanks..
i need a script which to delete the bbcode from my messages..
let's say that i have:
Code: Select all
[b]sample text[/b]i need to return only
Code: Select all
sample textso far, i thought i might use this:
Code: Select all
$de_inlocuit = array("[b]", "[/b]", "[u]", "[/u] . and so on ");
$post_curat = str_replace($de_inlocuit, "", $row_post['pagetext']);how can i delete all the code between "[" "]" ?
thanks..