PHP code example of touson / mswordcleanup
1. Go to this page and download the library: Download touson/mswordcleanup 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/ */
touson / mswordcleanup example snippets
$cleaner = new touson\Cleaner('some HTML');
// Returns the cleaned HTML
$cleaner->cleanHtml();
// Or you can use it statically. This will new up an instance of the Cleaner class, run the cleanHtml() method and return the result
Cleaner::clean('some HTML');