PHP 库将 HTML 转换为格式化的纯文本
A PHP library for converting HTML to formatted plain text.
composer require html2text/html2text$html = new \Html2Text\Html2Text('Hello, "world"');
echo $html->getText(); // Hello, "WORLD"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.
暂无开放 Issues,或尚未同步最近议题。