Trott / grunt-html-smoosher

A grunt task which takes an HTML file, finds all the CSS and JS links, and outputs a version with all the CSS and JS written inline for ease of pasting into a cms

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

greater or less than characters inside attributes are breaking the output

fidoboy opened this issue · comments

When there is a '<' or '>' character inside one tag attribute smoosher breaks the output code. Using angularJS for example, there are attributes where you can use javascript comparisons inside one attribute. How can i solve this? why is smoosher looking into the tag attributes? i think that it should limit its search to <script> and <link rel="stylesheet"> tags. It could be very useful to have an option to limit smoosher to only use this two tags cause i don't need minify or any other optimizations beyond this.

regards,