PHPackages                             crwlr/html-2-text - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. crwlr/html-2-text

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

crwlr/html-2-text
=================

Convert HTML to formatted plain text.

v0.1.2(1y ago)316.6k↓15.2%1MITPHPPHP ^8.1

Since Jan 26Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/crwlrsoft/html-2-text)[ Packagist](https://packagist.org/packages/crwlr/html-2-text)[ Docs](https://www.crwlr.software/packages/html-2-text)[ GitHub Sponsors](https://github.com/sponsors/otsch)[ RSS](/packages/crwlr-html-2-text/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (4)Versions (4)Used By (1)

[![crwlr.software logo](https://github.com/crwlrsoft/graphics/raw/eee6cf48ee491b538d11b9acd7ee71fbcdbe3a09/crwlr-logo.png)](https://www.crwlr.software)

HTML to formatted Plain Text
============================

[](#html-to-formatted-plain-text)

This easy-to-use package helps you to convert HTML to formatted plain text.

Demo
----

[](#demo)

```
use Crwlr\Html2Text\Html2Text;

$html =
