Home > Archive > PHP Pear > June 2004 > Re: [PEAR] Text_Wiki: HTML => Wiki
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: [PEAR] Text_Wiki: HTML => Wiki
|
|
| Paul M Jones 2004-06-28, 4:08 pm |
| Hi, Tobias,
> is there a possibility to parse HTML to Wiki Markup with Text_Wiki?
Not with Text_Wiki itself, as things are now, unless you want to write
(1) a rule parser set for HTML, and (2) a rule renderer set that
converts the Text_Wiki internal meta-format to Wiki. Sorry. :-(
However, it is very possible to write a standalone script of custom
regexes to convert HTML documents. I have done so myself, and while it
is *very* limited, it helps with simple HTML pages. Email me off-list
if you're interested in seeing the (very rudimentary) code for this.
--
Paul M. Jones
Savant: the simple alternative to Smarty for PHP.
http://phpsavant.com/
DB_Table: build RDBMS tables and XHTML forms in one PHP class.
http://wiki.ciaweb.net/yawiki/index.php?area=DB_Table
Yawiki: a collaborative online documentation system.
http://wiki.ciaweb.net/yawiki/index.php?area=Yawiki
Yawp: a single-file foundation for PHP applications.
http://phpyawp.com/
| |
| Tobias Schlitt 2004-06-28, 8:58 pm |
| Hi Paul M Jones!
On 06/28/04 13:16 you wrote:
[color=darkred]
> However, it is very possible to write a standalone script of custom
> regexes to convert HTML documents. I have done so myself, and while it
> is *very* limited, it helps with simple HTML pages. Email me off-list
> if you're interested in seeing the (very rudimentary) code for this.
Maybe you can offer that little snippet on your website, since it'd be
quite usefull! :)
Regards,
(Another) Toby
--
Tobias Schlitt GPG Key: 0xA6529579
a passion for php http://www.schlitt.info
Like to say "thank you"? - http://pear.php.net/wishlist.php/toby
| |
| Aaron Wormus 2004-06-29, 3:56 am |
| Paul M Jones wrote:
>
> Not with Text_Wiki itself, as things are now, unless you want to write
> (1) a rule parser set for HTML, and (2) a rule renderer set that
> converts the Text_Wiki internal meta-format to Wiki. Sorry. :-(
I imagine it would be fairly simple to do it using Tidy.
Aaron
|
|
|
|
|