deanhume / html-minifier

A simple command line tool to minify your HTML, Razor views & Web Forms views
http://deanhume.github.io/html-minifier/
MIT License
134 stars 86 forks source link

asp.net expression in markup got changed #22

Closed ivanlewis closed 8 years ago

ivanlewis commented 8 years ago

<meta name="copyright" content="<% =settings.websitename %>" />

became

<meta name="copyright" content="&lt;% =settings.websitename %>"

deanhume commented 8 years ago

Thanks for sending this through - Ill take a look.

ivanlewis commented 8 years ago

There is some issues with conversions..

₹ changed to ₹

I Tried minifying on production server and had to disable it.

ivanlewis commented 8 years ago

Original Code: snip_20160402131938

After minification: snip_20160402131922

deanhume commented 8 years ago

Hi @ivanlewis - The latest release seems to be having a few issues with encodings. Please could you upload a copy of the file you are using so that I can build a test around it?

At the moment it seems to work, but I think it could be due to file. You can attach it to this comment.

ivanlewis commented 8 years ago

I had extra spaces there. I removed it and working fine. Will test more and update you.

deanhume commented 8 years ago

I'll close this for now. Please let me know if the issue reappears :+1: :+1:

ivanlewis commented 8 years ago

Okay sure. Thanks.