- New options to prevent clobbering Angular files, thanks to @joeyparrish:
- allow-attributes-without-values
- lower-case-tags
- lower-case-attribute-names
- I'm not sure when the CLI broke but it works again.
- The replace-nbsp option has been renamed to decode-entities.
- Script and style tags are no longer removed with the new preserve-tags option. Fixes #12, #13 and #19.
Regular expressions are now supported in the remove-attributes, remove-empty-tags and remove-tags options. Thanks, @smnbbrv!
Extra spaces are now removed from attribute values.
Hanging indent is now applied to wrapped lines.
Multiline comments are now squashed into a single line, just like text. This makes wrapping them easier and simplifies how conditional comments are handled.
Maximum call stack error when trying to wrap lines without spaces has been fixed.
Support for conditional comments has been added.
Trying to preserve CSS and JavaScript formatting is a pain, so style and script tags are no longer supported in this release. They will simply be removed from the output.
The license has been switched from ISC to Unlicense.
The htmlparser2 and minimist dependencies have been updated.
Up until now, this thing really only supported cleaning fragments of HTML. If you tried to feed it an entire HTML page (with doctype declaration, style tags, script tags, etc.) it would blow up.
Thanks in part to @RonanDrouglazet, this embarassing oversight has been addressed. However, I have no intention of turning this into a CSS or JavaScript cleaner/formatter. Anything found within a style or script tag will be output as is.