aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-12-09 11:21:39 +0100
committerChocobozzz <me@florianbigard.com>2019-12-09 11:21:39 +0100
commit1aa7543403f278ad88d64e368e77bcb3efa58dd7 (patch)
tree4ff1c2fe27380d6afa3614193547c3f90b277796 /client/src/app/shared
parentfe9d05310bda71480a6d2bfbccc4ac80939754c0 (diff)
downloadPeerTube-1aa7543403f278ad88d64e368e77bcb3efa58dd7.tar.gz
PeerTube-1aa7543403f278ad88d64e368e77bcb3efa58dd7.tar.zst
PeerTube-1aa7543403f278ad88d64e368e77bcb3efa58dd7.zip
Support basic markdown in comments
Diffstat (limited to 'client/src/app/shared')
-rw-r--r--client/src/app/shared/renderer/html-renderer.service.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/app/shared/renderer/html-renderer.service.ts b/client/src/app/shared/renderer/html-renderer.service.ts
index 28ef51e72..94a8aa4c6 100644
--- a/client/src/app/shared/renderer/html-renderer.service.ts
+++ b/client/src/app/shared/renderer/html-renderer.service.ts
@@ -16,7 +16,7 @@ export class HtmlRendererService {
16 const html = this.linkifier.linkify(text) 16 const html = this.linkifier.linkify(text)
17 17
18 return sanitizeHtml(html, { 18 return sanitizeHtml(html, {
19 allowedTags: [ 'a', 'p', 'span', 'br' ], 19 allowedTags: [ 'a', 'p', 'span', 'br', 'strong', 'em', 'ul', 'ol', 'li' ],
20 allowedSchemes: [ 'http', 'https' ], 20 allowedSchemes: [ 'http', 'https' ],
21 allowedAttributes: { 21 allowedAttributes: {
22 'a': [ 'href', 'class', 'target' ] 22 'a': [ 'href', 'class', 'target' ]