Use `@resource` and `DOMParser` to insert HTML elements