darylldoyle/svg-sanitizer

suggestion/ remove first line; <?xml

Closed this issue · 3 comments

xerc commented

"The XML declaration is only required if you are using a non-Unicode character encoding"
ref. https://oreillymedia.github.io/Using_SVG/extras/ch01-XML.html

Sounds more like a tidy-feature to me. Users have to configure that behavior individually - removing <?xml prologue per default does not seem to be a good idea.

xerc commented

fyi/ this tool add this line even if it is not there in the first place

@xerc I've kick-started a possible solution, to basically avoid adding <?xml> prolog in case it was not there before. I'm looking forward getting feedback on that. Thx!