Re: Editing in a text area field
| From: | ceo at l-i-e dot com | Date: | Mon, 12 Jan 2009 15:42:04 +0000 |
| Subject: | Re: Editing in a text area field | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-286095@lists.php.net to get a copy of this message | ||
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.