touson / mswordcleanup
Cleans up all the crappy markup when word outputs HTML
Installs: 59
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/touson/mswordcleanup
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');