PHP code example of robquistnl / simplehtmltotext

1. Go to this page and download the library: Download robquistnl/simplehtmltotext library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

robquistnl / simplehtmltotext example snippets


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