html2text

PHP library to convert HTML to formatted plain text

  • Owner: mtibben/html2text
  • Platform:
  • License::
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

Html2Text

A PHP library for converting HTML to formatted plain text.

Build Status

Installing

composer require html2text/html2text

Basic Usage

$html = new \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.

Main metrics

Overview
Name With Ownermtibben/html2text
Primary LanguagePHP
Program languagePHP (Language Count: 1)
Platform
License:
所有者活动
Created At2012-06-04 04:10:34
Pushed At2024-08-20 02:53:07
Last Commit At2024-08-20 10:43:29
Release Count15
Last Release Name4.3.2 (Posted on )
First Release Name1.0.0 (Posted on )
用户参与
Stargazers Count578
Watchers Count22
Fork Count177
Commits Count146
Has Issues Enabled
Issues Count47
Issue Open Count14
Pull Requests Count45
Pull Requests Open Count3
Pull Requests Close Count33
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private