Make the template a valid HTML.