touson / mswordcleanup
清除Word输出HTML时的所有糟糕的标记
1.0.0
2020-12-18 20:59 UTC
Requires
- php: >=7.2.0
README
清除由Microsoft Word产生的HTML中的所有垃圾
此包是将WebmasterSherpa开始的工作转换为基于类型的composer包。
安装
您可以使用Composer将此库添加到您的项目中的本地、按项目依赖项
composer require touson/mswordcleanup
使用示例
$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');