Quote:
Originally Posted by AndrewD
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
|
No i actually only want to be able to suppress bbcode that can break my layout.
I have a template that reminds the google link layout but with a site thumbnail all within a fieldset...
so a text like:
hello this is a red bold, italic text

with smiley
is acceptable..
But a description containing [ html ], [ php ] or [ CODE ] or [ QUOTE ] tags can really break the layout.
also if i limit the description lenght to lets say 500 chars.. and in editor there is a long quote ... it will get truncated in the middle of the [ quote ]...
i thought of a fix.. but maybe you have a better idea.
1. replace the editor with quickreply (but add smilies as dropdown or below like here in normal editor)
2. do a preg or str _replace to remove unwanted tags...
(its not that users will use those tags by inadvertance.. but some really want to break layout)
Felix..