PHP Classes

PHP HTML to Text: Convert HTML string to text from the HTML document

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 82 All time: 10,079 This week: 488Up
Version License PHP version Categories
html-to-text 1.0GNU General Publi...5HTML, PHP 5, Text processing
Description 

Author

This class can convert HTML string to text from the HTML document.

It can take a text string of a HTML document and parses it using the PHP DOM extension.

Then the class extracts the text from the DOM document object to return a string that shows the text from the original HTML document.

Picture of Pierre-Henry Soria
  Performance   Level  
Name: Pierre-Henry Soria <contact>
Classes: 49 packages by
Country: United Kingdom
Innovation award
Innovation award
Nominee: 18x

Winner: 3x

  Files folder image Files (9)  
File Role Description
Files folder image.github (1 file, 1 directory)
Files folder imagemedia (1 file)
Files folder imagesrc (1 file)
Files folder imagetests (1 file)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE.md Lic. License text
Accessible without login Plain text file phpunit.xml.dist Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (9)  /  .github  
File Role Description
Files folder imageworkflows (1 file)
  Accessible without login Plain text file FUNDING.yml Data Auxiliary data

  Files folder image Files (9)  /  .github  /  workflows  
File Role Description
  Accessible without login Plain text file test.yml Data Auxiliary data

  Files folder image Files (9)  /  media  
File Role Description
  Accessible without login Image file kofi-logo.png Icon Icon image

  Files folder image Files (9)  /  src  
File Role Description
  Plain text file Convert.php Class Class source

  Files folder image Files (9)  /  tests  
File Role Description
  Plain text file ConvertTest.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:82
This week:0
All time:10,079
This week:488Up
User Comments (1)
Suitable for beer
2 years ago (pataskun)
35%StarStar