paolochiodi / htmlcompressor

A work in progress port of google's htmlcompressor.jar
Other
152 stars 26 forks source link

Problems with remove_spaces_inside_tags() #37

Open jkr2255 opened 8 years ago

jkr2255 commented 8 years ago

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
paolochiodi commented 8 years ago

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