I wanted to make this a unit test but it turns out the Sanitizer::safeEncodeAttribute() calls currently make this impossible. Bug: T353269 Change-Id: I5266e7b8b67db1c812dc9e4675d0c079ab1f9a40