From 0e45e336f62a411b3c423be46d16252355c754d7 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 14 Nov 2022 10:47:39 +0100 Subject: Fix HTML in account/channel description --- client/src/app/+video-channels/video-channels.component.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'client/src/app/+video-channels/video-channels.component.ts') diff --git a/client/src/app/+video-channels/video-channels.component.ts b/client/src/app/+video-channels/video-channels.component.ts index c5bcdffe2..afbf96032 100644 --- a/client/src/app/+video-channels/video-channels.component.ts +++ b/client/src/app/+video-channels/video-channels.component.ts @@ -56,8 +56,17 @@ export class VideoChannelsComponent implements OnInit, OnDestroy { ])) ) .subscribe(async videoChannel => { - this.channelDescriptionHTML = await this.markdown.textMarkdownToHTML(videoChannel.description) - this.ownerDescriptionHTML = await this.markdown.textMarkdownToHTML(videoChannel.ownerAccount.description) + this.channelDescriptionHTML = await this.markdown.textMarkdownToHTML({ + markdown: videoChannel.description, + withEmoji: true, + withHtml: true + }) + + this.ownerDescriptionHTML = await this.markdown.textMarkdownToHTML({ + markdown: videoChannel.ownerAccount.description, + withEmoji: true, + withHtml: true + }) // After the markdown renderer to avoid layout changes this.videoChannel = videoChannel -- cgit v1.2.3