Template in html DOM doesn't escape entities