voku / HtmlMin

:clamp: HtmlMin: HTML Compressor and Minifier via PHP
MIT License
161 stars 22 forks source link

Unexpected whitespace removal before anchor tag #81

Open jordanade opened 2 years ago

jordanade commented 2 years ago

Input HTML: Get a <strong>complimentary</strong> organic lawn fertilizer with a lawn maintenance or bi-weekly subscription.<strong> <a href="https://domain.com/qgq8/contact-us">Contact us to schedule!</a></strong>

Expected output: Get a <strong>complimentary</strong> organic lawn fertilizer with a lawn maintenance or bi-weekly subscription<strong> <a href="https://domain.com/qgq8/contact-us">Contact us to schedule!</a></strong>

Actual output: Get a <strong>complimentary</strong> organic lawn fertilizer with a lawn maintenance or bi-weekly subscription.<strong><a href="https://domain.com/qgq8/contact-us">Contact us to schedule!</a></strong>

Happens regardless of doOptimizeViaHtmlDomParser, doSumUpWhitespace, doRemoveWhitespaceAroundTags, doRemoveSpacesBetweenTags settings.