removed multiple encodings

removed dompurify as htmlentities is already used