mirror of
https://github.com/axllent/mailpit.git
synced 2025-07-03 00:46:58 +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",
|
||||
"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
|
||||
// this.debugDOMPurify(DOMPurify.removed)
|
||||
// this.debugDOMPurify(DOMPurify.removed);
|
||||
|
||||
return clean;
|
||||
},
|
||||
|
Reference in New Issue
Block a user