From a4927884b224e3d4d78ff5db88cbb77bbdf8ee0b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 19 Jan 2023 14:27:51 +0100 Subject: Support mailto for custom markup --- shared/core-utils/renderer/html.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'shared') diff --git a/shared/core-utils/renderer/html.ts b/shared/core-utils/renderer/html.ts index 502308979..877f2ec55 100644 --- a/shared/core-utils/renderer/html.ts +++ b/shared/core-utils/renderer/html.ts @@ -38,7 +38,11 @@ export function getCustomMarkupSanitizeOptions (additionalAllowedTags: string[] ...additionalAllowedTags, 'div', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'img' ], - allowedSchemes: base.allowedSchemes, + allowedSchemes: [ + ...base.allowedSchemes, + + 'mailto' + ], allowedAttributes: { ...base.allowedAttributes, -- cgit v1.2.3