Re: HTML_BBCode reverse parsing
| From: | Eric \"e-dawg\" Johnston | Date: | Thu, 28 Aug 2003 00:09:30 +0000 |
| Subject: | Re: HTML_BBCode reverse parsing | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-7440@lists.php.net to get a copy of this message | ||
Could you explain the purpose? Pure HTML will not translate cleanly to
BBCode, and you don't even need to translate HTML produced with BBCode
back to HTML - you either parse it every time it is displayed or if
you're trying to save on processing time, you store the original along
with the HTML output in the record in the table...
On Tue, 2003-08-26 at 13:18, Emanuel Züger wrote:
> Hi,
>
> there is a great package for parsing BBcode, it works good, but one
> question remains:
> Is there any possibility to do the parsing in the other direction,
> means, to transform text with html-tags into text with the appropriate
> BBCODE-Tags?
>
> I think, this is qute essential, because there are many opportunities to
> work on ordinary html-text by using BBCode.
>
> Any ideas are appreciated!
>
> Thanks, Emanuel.
>
> --
>
> ********************************************************************
> Emanuel Züger
> mail@liqui.net
> ********************************************************************