html-minifier icon indicating copy to clipboard operation
html-minifier copied to clipboard

option to keep original attribute quotes for inlining JSON at runtime

Open AndyOGo opened this issue 6 years ago • 1 comments

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>

AndyOGo avatar May 14 '19 11:05 AndyOGo