html-janitor
Advanced tools
Changelog
2.0.2
Validation functions can now return validation objects rather than simply outcomes.
Thanks to Brad Vogel for this functionality.
Changelog
2.0.1
Adds the ability to configure HTML Janitor with validation functions that determine whether a given element should be allowed programatically.
Thanks Brad Vogel for adding this functionality.
Changelog
2.0.0
Makes element configuration (e.g. p: true/false) symmetrical. Previously setting and element to false remove the element completely from the cleaned output.
Changelog
1.1.0
It should be possible to allow all attributes on an element. This was mentioned in the documentation but was not working as intended.
As the previous behaviour was broken I don't believe anyone was using it but if you were then hopefully it will just magically work for you now.
Thanks Alex Palaistras for fixing this.
Changelog
1.0.0
Changes the definition of what constitutes a block tag and also the code will now strip out incorrectly nested block and inline tags.
Thanks to Ankit Ahuja for this contribution.
Changelog
0.3.2
Adds IE NodeWalker compatibility change from daniel-nelson, thanks.
Note: there are no CI tests for IE so support is not guaranteed
Changelog
0.3.1
No functionality changes but corrects the package json for the NPM release