Prevent data loss when using `decodeEntities`
authorMathias Bynens <mathias@qiwi.be>
Sun, 23 Sep 2018 17:29:41 +0000 (13:29 -0400)
committerMathias Bynens <mathias@qiwi.be>
Fri, 28 Sep 2018 20:14:59 +0000 (16:14 -0400)
commit9b0c7ccf7c664ef7a991d7945318d1398cfc4cfd
treece1837af6f6001d5f42f9d756b6a42e4aed094d1
parentdf720b32ffdcda11025a75dc57acef4210a031f4
Prevent data loss when using `decodeEntities`

Without this patch, the `decodeEntities` option decodes e.g. `&amp;` even in cases when doing so changes the meaning (and rendering) of the resulting HTML.

Fixes #964.
dist/htmlminifier.js
dist/htmlminifier.min.js
package.json
src/htmlminifier.js
tests/index.html
tests/minifier.js