rules: fix HTML in template