Skip to content

Cleans all the crap out of HTML produced by Microsoft Word

License

Notifications You must be signed in to change notification settings

touson/mswordcleanup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ms-word-cleanup

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');

About

Cleans all the crap out of HTML produced by Microsoft Word

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages