voku / HtmlMin

:clamp: HtmlMin: HTML Compressor and Minifier via PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`sizes` and `srcset` value are not trim...

jimblue opened this issue · comments

Hi,

I've notice that sizes and srcset value are not trim...

For exemple, the following HTML source:

<source
  type="image/webp"
  srcset="
    /images/cat-360.webp 360w,
    /images/cat-720.webp 720w,
    /images/cat-1440.webp 1440w
  "
/>

is minnify like this:

<source type="image/webp" srcset=" /images/cat-360.webp 360w, /images/cat-720.webp 720w, /images/cat-1440.webp 1440w  "/>

when it should returns:

<source type="image/webp" srcset="/images/cat-360.webp 360w, /images/cat-720.webp 720w, /images/cat-1440.webp 1440w"/>