ECMS-6059: "Label" field in Template Document has XSS vulnerability

Fix description:
  - escape XSS character after get the contentType