Add mx-reply to dompurify's list so we can ignore it ourselves.

This commit is contained in:
Danila Fedorin 2021-07-26 12:21:20 -07:00
parent 305fab467e
commit 753bb8392b

View File

@ -56,6 +56,7 @@ class HTMLParseResult {
const sanitizeConfig = { const sanitizeConfig = {
ALLOWED_URI_REGEXP: /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp|xxx|mxc):|[^a-z]|[a-z+.-]+(?:[^a-z+.-:]|$))/i, ALLOWED_URI_REGEXP: /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp|xxx|mxc):|[^a-z]|[a-z+.-]+(?:[^a-z+.-:]|$))/i,
ADD_TAGS: ['mx-reply']
} }
export function parseHTML(html) { export function parseHTML(html) {