Closed toberndo closed 10 years ago
Technically, everything after the Message-ID
is truncated because starts with <CAMQ7_A76jtf9Q1bx=G_K9miTdy0C2LPo7xuECNmGpDzmQPcZ4A@mail.gmail.com>
that is analyzed as a tag, and it is not allowed.
Anyway, this is a DOM-only sanitizer for HTML, MathML and SVG. You should analyze only the Content-Type
header field.
Ok, makes sense. That means I would parse the message first and send the text/html part to DOMPurify. Thanks
I'm trying to sanitze a MIME message:
and get with default 0.3 the following output:
Is it intended that everything after a
<xxx@xxx.xxx>
is truncated? And if yes, is there a setting to prevent that?Thanks.