Made the HTML emission system slightly more flexible.