Skip to content

threeheartsdigital/html-to-plaintext-conversion-service

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Html to plaintext conversion service

A PHP library for converting HTML to formatted plain text.

Basic Usage

$html = (new \ThreeHeartsDigital\HtmlToPlaintextConversionService())->setHtml('Hello, &quot;<b>world</b>&quot;');

echo $html->getPlainText();  // Hello, "WORLD"

History

This library started life on the blog of Jon Abernathy http://www.chuggnutt.com/html2text

A number of projects picked up the library and started using it - among those was RoundCube mail. They made a number of updates to it over time to suit their webmail client.

Now it has been extracted as a standalone library. Hopefully it can be of use to others.

About

PHP library to convert HTML to formatted plain text

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%