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.

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: 7 years, 3 months 21 days ago | Last updated: 7 years, 3 months 21 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

html-to-plain-text-conversion
Hot Scripts
Sponsors