Skip to content
This repository has been archived by the owner on Jul 20, 2019. It is now read-only.
/ html2text Public archive
forked from voku/html2text

PHP library to convert HTML to formatted plain text

Notifications You must be signed in to change notification settings

pwillcode/html2text

 
 

Repository files navigation

Build Status codecov.io Coverage Status Scrutinizer Code Quality Codacy Badge SensioLabsInsight Dependency Status Reference Status Total Downloads License

Html2Text

WARNING: this is only a Maintained-Fork of "https://github.com/mtibben/html2text/"

A PHP library for converting HTML to formatted plain text.

Installation

The recommended installation way is through Composer.

$ composer require voku/html2text

Basic Usage

$html = new \voku\Html2Text\Html2Text('Hello, &quot;<b>world</b>&quot;');

echo $html->getText();  // 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

  • HTML 71.4%
  • PHP 28.6%