check for html validation and clean the mess that handlebars cause on html indentation