htmlcompressor icon indicating copy to clipboard operation
htmlcompressor copied to clipboard

Problems with remove_spaces_inside_tags()

Open jkr2255 opened this issue 8 years ago • 1 comments

In current version, remove_spaces_inside_tags() is always called and cannot be disabled by option.

And this compression causes corruption in <input> value.

<!-- before -->
<input value=" value = 5 ">

<!-- after -->
<input value=" value=5 ">

So. at least either of following improvements is necessary:

  1. Create option to disable this compression
  2. Exclude attribute values from this compression

jkr2255 avatar Sep 22 '16 01:09 jkr2255

Hi, thanks for reporting this. I just published a new version (0.3.1) with an options to disable this compression as a quick fix... I'll work on a solution for point 2

paolochiodi avatar Sep 23 '16 18:09 paolochiodi