$ minimize '<img src="whatever.png" alt="<cool>">'
Minimize HTML
Using content from the CLI
Minimizing content...
Finished processing content
=========================================
<img src=whatever.png alt=<cool>>
Removing quotes from that alt parameter exposes the angle brackets, screwing up the HTML causing browsers to parse the last > as a text node. I could use the option to not remove quotes but it would be nice if it was smart enough to keep quotes if they contain < or >.
Removing quotes from that
alt
parameter exposes the angle brackets, screwing up the HTML causing browsers to parse the last>
as a text node. I could use the option to not remove quotes but it would be nice if it was smart enough to keep quotes if they contain<
or>
.