xml-rs icon indicating copy to clipboard operation
xml-rs copied to clipboard

Increase minification: emit_attributes() should pick single or double quotation form for escaping

Open raphaelcohn opened this issue 7 years ago • 1 comments

A nice feature to improve minification would to let emit_attributes() choose to use either a single or double quoted form for attribute values depending on the presence of double or single quotes in the attribute value to be escaped. This obviously has a performance hit, so it should be an option in EmitterConfig.

raphaelcohn avatar Dec 11 '17 12:12 raphaelcohn

Good idea! Pull requests are of course welcome. Not sure if I will be able to work on this any time soon.

netvl avatar Jan 08 '18 18:01 netvl