touson / mswordcleanup
Cleans up all the crappy markup when word outputs HTML
1.0.0
2020-12-18 20:59 UTC
Requires
- php: >=7.2.0
README
Cleans all the crap out of HTML produced by Microsoft Word
This package is a conversion of the work started by WebmasterSherpa into a class based composer package.
Installation
You can add this library as a local, per-project dependency to your project using Composer:
composer require touson/mswordcleanup
Usage examples
$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');