mirror of
https://github.com/axllent/mailpit.git
synced 2025-07-05 00:48:52 +02:00
Chore: Allow unknown href link protocols in HTML view such as myapp:// (#532)
This commit is contained in:
@ -107,11 +107,12 @@ export default {
|
|||||||
"vspace",
|
"vspace",
|
||||||
"xml:lang",
|
"xml:lang",
|
||||||
],
|
],
|
||||||
FORBID_ATTR: ["script"],
|
FORBID_ATTR: ["script"], // all JavaScript should be removed
|
||||||
|
ALLOW_UNKNOWN_PROTOCOLS: true, // allow link href protocols like myapp:// etc
|
||||||
});
|
});
|
||||||
|
|
||||||
// for debugging
|
// for debugging
|
||||||
// this.debugDOMPurify(DOMPurify.removed)
|
// this.debugDOMPurify(DOMPurify.removed);
|
||||||
|
|
||||||
return clean;
|
return clean;
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user