Fix stripped tags for template editor