html-minifier
html-minifier copied to clipboard
option to keep original attribute quotes for inlining JSON at runtime
By default all quotes are replaced by ".
It would be great if a e.g. keepOriginalQuoting could be specified to avoid breaking inlining JSON at runtime.
input:
<html data-json='<%- myJSON %>'></html>
output:
<html data-json="{ "foo": "bar" }"></html>