Boilerplate template, plus an utility function for HTML escaping.