Releases for sf 1.0
| Version |
License |
API |
Released |
|
0.0.2beta
|
MIT license |
0.0.2beta
|
05/09/2008 |
|
0.0.1beta
|
MIT license |
0.0.1beta
|
05/09/2008 |
Changelog for release 0.0.2 - 05/09/2008
Other releases
Release 0.0.2 - 05/09/2008
Release 0.0.1 - 05/09/2008
- Blade McKain: First Version
sfHtml2Text plugin
The sfHtml2Text is a symfony plugin that provides an abstaction of the html2text class (http://www.chuggnutt.com/html2text.php)
Installation
To install sfSwiftPlugin, type:
symfony plugin-install http://plugins.symfony-project.com/sfHtml2TextPlugin
Html2Text libary in a global directory
Copy the autoload.yml.sample from %SF_PLUGINS_DIR%/sfHtml2TextPlugin/config/ to your symfony %SF_CONFIG_DIR% folder and set the path:
autoload:
html2text_classes:
...
path: /your/path/to/html2text/
...
Usage
Simply use it:
$htmlText ="
Hello World!
";
$h2t =new html2text($htmlText);
echo $h2t->get_text();
Also be sure to review the docs at http://www.chuggnutt.com/html2text.php
Enjoy!