Closed toliklunev closed 9 years ago
Currently this is not supported, since htmlparser2 will just parse out the content of the attribute and minimize reconstructs each attribute through https://github.com/Moveo/minimize/blob/master/lib/helpers.js#L72-L74, would an quoting style option be sufficient in this case? e.g. new Minimize({ quotemarks: "'" })
where " is default and it can be optional set to '
Hmm perhaps a options named singlequote would make more sense, e.g. new Minimize({ singlequote: true })
which would use a ' style
I'm think second embodiment have more sense.
Or can do a background check on the content attribute presence "
Good last call, will do that :) expect a patch release today
Attribute
<div data-vars='{"form": "blablabla"}'></div>
after processing will come to<div data-vars="{"form": "blablabla"}"></div>