I wanted to remove the extra spaces between elements and allow self-closing tags (ie <path />).
This pull-request fixes both, by adding a setXMLOptions method and by only calling resetInternal before sanitizing. Backwards-compatibility has been maintained.
I've also cleaned up some code formatting to make it a bit easier to read.
I noticed that the sanitizer changed this:
into this:
I wanted to remove the extra spaces between elements and allow self-closing tags (ie
<path />
).This pull-request fixes both, by adding a
setXMLOptions
method and by only callingresetInternal
before sanitizing. Backwards-compatibility has been maintained.I've also cleaned up some code formatting to make it a bit easier to read.