PHPackages                             bicpi/html-converter - 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. bicpi/html-converter

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

bicpi/html-converter
====================

HTML-to-Text converter library

v2.0.0(9y ago)1120.7k13[1 PRs](https://github.com/bicpi/HtmlConverter/pulls)1MITPHPPHP &gt;=5.5.9

Since Apr 20Pushed 5y ago3 watchersCompare

[ Source](https://github.com/bicpi/HtmlConverter)[ Packagist](https://packagist.org/packages/bicpi/html-converter)[ Docs](http://github.com/bicpi/HtmlConverter)[ RSS](/packages/bicpi-html-converter/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (6)Used By (1)

bicpi's HtmlConverter library
=============================

[](#bicpis-htmlconverter-library)

HtmlConverter is a PHP library that provides easy HTML-to-Text conversion. This is useful, for example, for automatically creating plain text parts of HTML emails.

[![Build Status](https://camo.githubusercontent.com/95ad837dcc8ef1735d3845fb3b556c822d388db6068f7948a76711f5eebdd548/68747470733a2f2f7472617669732d63692e6f72672f62696370692f48746d6c436f6e7665727465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/bicpi/HtmlConverter)

Usage
-----

[](#usage)

1. Create converter
2. Call `->convert($html)` method
3. Enjoy returned plain text

### SimpleConverter

[](#simpleconverter)

The `SimpleConverter` works on every PHP enabled system by using PHP's `strip_tags()` function and putting some HTML entity decoding on top.

```
