HTML to Plain Text Conversion 1.0.0

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.

// Include the class definition file.

// 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:


License type: GPL - GNU Public License
Date added: 7 years, 5 months 27 days ago | Last updated: 7 years, 5 months 27 days ago

More popular Text Processing

This is actually one of the most advanced image hosting script. The imagetize key features: SEO, Ads Ready, Admin

Listing Files

Hot Scripts