I am using the DOMParser in my code as such:
html`${this.domParser.parseFromString(this.richText, 'text/html').body.children}`
After reading the documentation i became a bit worried that Cross site Scripting attacks
were still possible because as the documentation states:
You can perform the opposite operation—converting a DOM tree into XML or HTML source—using the XMLSerializer interface.
However it also states that it returns
Either Document or XMLDocument depending on the mimeType argument.
So is using this method going good for securing your site against XSS
?