Re: Best way to allow a user to indicate formatting to be displayed but stored.
| From: | Matthew Fonda | Date: | Wed, 29 Sep 2004 19:31:09 +0000 |
| Subject: | Re: Best way to allow a user to indicate formatting to be displayed but stored. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-198213@lists.php.net to get a copy of this message | ||
Typically people use BBCode to do this.
This mean the user will enter something like
[b]this is bold[/b] or [i]italic[/u] and the BBCode will be parsed and
transformed into HTML when the page is displayed. There are many parsers
already written to do this, or you could make your own, or use PEAR:
http://pear.php.net/package/HTML_BBCodeParser
On Wed, 2004-09-29 at 10:51, GH wrote:
> I am looking for the best way to have a user enter information and
> format it ... i.e. Bold, Italics, etc... with out havng to use the
> HTML commands...
>
> Using PHP4.
>
> Any suggestions...