GUI-489: Sanitize unsafe content to prevent XSS attack vectors