Re: Question: HTML_Convert package
| From: | Philippe Jausions | Date: | Tue, 04 May 2004 19:46:02 +0000 |
| Subject: | Re: Question: HTML_Convert package | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-28779@lists.php.net to get a copy of this message | ||
Stephan Schmidt wrote:
Hi,Sure, that could be the underlying tech. The idea was to provide something out-of-the box, as for the e-mail downward compatibility for text-only messages without having to reinvent the wheel everytime. $myEmailInPlainText = $oHTML2Text->convert($myEmailInHTML); It could be providing a ready to use XSL, use xML_Transformer or whatever... -PhilippeQuick (stupid) question: Is there a HTML_Convert package somewhere that would take HTML as input and spit the content converted to another format? I didn't find anything like this on the site. Something like HTML_Convert::factory('text'); or HTML_Convert::factory('pdf'); or whatever.The best way would probably be a combination of XML_HtmlSax and XML_Transformer... Stephan