HTML to Plain Text Conversion 1.0.0
Developed by Jon Abernathy, listed in Text Processing
HTML to Plain Text Conversion converts HTML to plain, formatted ASCII text. By default, the text is wrapped to 70 characters, and some basic formatting is applied to preserve some of the HTML formatting.
Usage:
// Include the class definition file.
require_once('class.html2text.inc');
// The "source" HTML you want to convert.
$html = 'Sample string with HTML code in it';
// Instantiate a new instance of the class. Passing the string
// variable automatically loads the HTML for you.
$h2t =& new html2text($html);
// Simply call the get_text() method for the class to convert
// the HTML to the plain text. Store it into the variable.
$text = $h2t->get_text();
// Or, alternatively, you can print it out directly:
$h2t->print_text();
?>
License type: GPL - GNU Public License
Date added: 5 years, 10 months 17 days ago | Last updated: 5 years, 10 months 17 days ago
More popular Text Processing
- ArAutoSummarize 1.0 (2 years, 5 months 24 days ago)
- Thesaurus tooltip 1.1 (2 years, 5 months 25 days ago)
- Spell Checker 1.0 (5 months 2 days ago)
- PHPPolygen 1.1 (4 years, 1 month 28 days ago)
- A Simple Sloganizer 1.0 (4 years, 8 months 29 days ago)
This is actually one of the most advanced image hosting script. The imagetize key features: SEO, Ads Ready, Admin
Listing Files

class.html2text.inc- 17.7 KB
- 08/08/2007 10:47:58
Hot Scripts
Sponsors
- FREE MySQL Cloud Database Super Simple, Zero-Management MySQL Cloud DB. Use It FREE!
- Pinterest clone Start your own pin board social network today. Get Pintastic and start your own pinterest clone network.
- MYRE Real Estate Software Professional Real Estate solutions by MYREPHP PROGRAMMING!
