Quote:
Originally Posted by derfelix
Hi andrew..
went through a series of test and was wondering:
its definetely NOT a bug but..
i can disable some of the bbcode in description.. like images but not html or php or quotes ...
actually i only want user to be able to use smilies.. bold, italic fonts etc.. but not the stuff breaking the layout...
so I only activated the smilies..
i limited description to 500 chars..
i tested adding an image.. (it will just give the url) thats fine..
but the user still can add php code, html code, indent, list and quotes.... (which looks horrible)
i did a str_replace for all those tags.. but my question.. is there a vbul native way to do that.. or something else more elegant?
Felix
|
You mean that you want the bbocdes removing from the description (on display or on entry?), so that it doesn't read something like this:
hello [ code ] this is a coloured text [ / code]
but rather
hello this is a coloured text