Re: Editing in a text area field
| From: | Eric Butera | Date: | Mon, 12 Jan 2009 15:46:55 +0000 |
| Subject: | Re: Editing in a text area field | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-286096@lists.php.net to get a copy of this message | ||
On Mon, Jan 12, 2009 at 10:42 AM, <ceo@l-i-e.com> wrote:
>
> Google for BBCode.
>
> It's just
> str_replace(array('[b]','[/b]'),array('<b>','</b>'),$text)
> in the end.
>
> And it's not really going to be any better than just letting them type <b> and
> </b> if that is needed.
>
> Your sanitization process will be the same no matter what, and will have the same flaws/risks
> either way.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Just to add to the discussion:
http://kore-nordmann.de/blog/why_are_you_using_bbcodes.html