Previously XML parsing and serialization was used, causing `<br>` to be disallowed and `<br />` to turn into `<br></br>`. Also update some uses of XPath to use querySelector() helper. Bug: T113791 Change-Id: Ic2069015b4cbb5d05a72eb383052319048111623