aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/core-utils
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-01-19 14:27:51 +0100
committerChocobozzz <me@florianbigard.com>2023-01-19 14:27:59 +0100
commita4927884b224e3d4d78ff5db88cbb77bbdf8ee0b (patch)
treedbac6a21be5be4fd343f24884d8b911be902a18a /shared/core-utils
parent32fde390f465b9ceef9e49c4037acdacbe176d65 (diff)
downloadPeerTube-a4927884b224e3d4d78ff5db88cbb77bbdf8ee0b.tar.gz
PeerTube-a4927884b224e3d4d78ff5db88cbb77bbdf8ee0b.tar.zst
PeerTube-a4927884b224e3d4d78ff5db88cbb77bbdf8ee0b.zip
Support mailto for custom markup
Diffstat (limited to 'shared/core-utils')
-rw-r--r--shared/core-utils/renderer/html.ts6
1 files changed, 5 insertions, 1 deletions
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[]
38 ...additionalAllowedTags, 38 ...additionalAllowedTags,
39 'div', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'img' 39 'div', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'img'
40 ], 40 ],
41 allowedSchemes: base.allowedSchemes, 41 allowedSchemes: [
42 ...base.allowedSchemes,
43
44 'mailto'
45 ],
42 allowedAttributes: { 46 allowedAttributes: {
43 ...base.allowedAttributes, 47 ...base.allowedAttributes,
44 48