2017 © Pedro Peláez
 

lib simplehtmltotext

A Simple PHP Class to transform HTML to Text

image

robquistnl/simplehtmltotext

A Simple PHP Class to transform HTML to Text

  • Thursday, November 24, 2016
  • by RobQuistNL
  • Repository
  • 0 Watchers
  • 6 Stars
  • 961 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 5 Open issues
  • 8 Versions
  • 18 % Grown

The README.md

SimpleHtmlToText

Build Status Latest Stable Version Total Downloads License, (*1)

A simple PHP class for transforming HTML to plain text (e.g. for emails), (*2)

Installation

Install using composer (composer require robquistnl/simplehtmltotext)., (*3)

Usage

$myHtml = '<b>This is HTML</b><h1>Header</h1><br/><br/>Newlines';
echo (new Parser())->parseString($myHtml);

Returns:, (*4)

**This is HTML**
### Header ###


Newlines

Supported tags

Currently only a few basic tags are supported, and no CSS is checked., (*5)

  • br
  • hr
  • h1, h2, h3, h4, h5, h6
  • table, tr, td, th (Very basic support)
  • b, strong, u, i, em
  • a Simple support; <a href="http://example.org">Click here</a> becomes Click here (http://example.org)
  • img Simple support; <img src="http://example.org/image.jpg"> becomes and <img alt="title" src="http://example.org/image.jpg"> becomes (title)
  • ul, ol, li, dd, dt

The Versions

24/11 2016

dev-master

9999999-dev https://github.com/RobQuistNL/SimpleHtmlToText

A Simple PHP Class to transform HTML to Text

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

html2text htmltotext simplehtml2text

24/11 2016

dev-develop

dev-develop https://github.com/RobQuistNL/SimpleHtmlToText

A Simple PHP Class to transform HTML to Text

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

html2text htmltotext simplehtml2text

24/11 2016

v1.1.1

1.1.1.0 https://github.com/RobQuistNL/SimpleHtmlToText

A Simple PHP Class to transform HTML to Text

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

html2text htmltotext simplehtml2text

24/11 2016

v1.1.0

1.1.0.0 https://github.com/RobQuistNL/SimpleHtmlToText

A Simple PHP Class to transform HTML to Text

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

html2text htmltotext simplehtml2text

24/11 2016

v1.0.3

1.0.3.0 https://github.com/RobQuistNL/SimpleHtmlToText

A Simple PHP Class to transform HTML to Text

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

html2text htmltotext simplehtml2text

21/11 2016

v1.0.2

1.0.2.0 https://github.com/RobQuistNL/SimpleHtmlToText

A Simple PHP Class to transform HTML to Text

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

html2text htmltotext simplehtml2text

21/11 2016

v1.0.1

1.0.1.0 https://github.com/RobQuistNL/SimpleHtmlToText

A Simple PHP Class to transform HTML to Text

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

html2text htmltotext simplehtml2text

21/11 2016

v1.0.0

1.0.0.0 https://github.com/RobQuistNL/SimpleHtmlToText

A Simple PHP Class to transform HTML to Text

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

html2text htmltotext simplehtml2text