Should I propose this class to pear?
| From: | Dmitri | Date: | Tue, 06 Oct 2009 12:48:30 +0000 |
| Subject: | Should I propose this class to pear? | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-52916@lists.php.net to get a copy of this message | ||
Hello!
I wrote a very simple class to convert html into plaintext format.
It's a very simple class that consists of one file and xsl template. It uses XSL template for transforming html into
a usable plaintext format, dropping tags that cannot possibly be used in plaintext like <style>, <script>, <head>, <object>
and applying some meaningful styles to some other tags like <h1>, <b>, <br> into newline, <p> into 2 new lines + tab + text + 2 more new lines
<ol> items converted into numbered items (with actual numbers), the links are extracted so that the <a href...>title</a> tags are converted like this:
Link title [Link: http://..... ]
<img> tags are converted to links to img src tag.
The XSL template also makes use of some php functions using registerPHPFunctions() on XSLProcessor class
Anyway, is anyone interested in making this into a pear class?