diff options
author | Chocobozzz <me@florianbigard.com> | 2022-11-14 10:47:39 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-11-14 10:47:39 +0100 |
commit | 0e45e336f62a411b3c423be46d16252355c754d7 (patch) | |
tree | d26efa3db4aca580ad2c6a154dded7a0e09593bb /client/src/app/+video-channels | |
parent | d91021548ed0dd3acec28722d0166bf38c67e0da (diff) | |
download | PeerTube-0e45e336f62a411b3c423be46d16252355c754d7.tar.gz PeerTube-0e45e336f62a411b3c423be46d16252355c754d7.tar.zst PeerTube-0e45e336f62a411b3c423be46d16252355c754d7.zip |
Fix HTML in account/channel description
Diffstat (limited to 'client/src/app/+video-channels')
-rw-r--r-- | client/src/app/+video-channels/video-channels.component.ts | 13 |
1 files changed, 11 insertions, 2 deletions
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 { | |||
56 | ])) | 56 | ])) |
57 | ) | 57 | ) |
58 | .subscribe(async videoChannel => { | 58 | .subscribe(async videoChannel => { |
59 | this.channelDescriptionHTML = await this.markdown.textMarkdownToHTML(videoChannel.description) | 59 | this.channelDescriptionHTML = await this.markdown.textMarkdownToHTML({ |
60 | this.ownerDescriptionHTML = await this.markdown.textMarkdownToHTML(videoChannel.ownerAccount.description) | 60 | markdown: videoChannel.description, |
61 | withEmoji: true, | ||
62 | withHtml: true | ||
63 | }) | ||
64 | |||
65 | this.ownerDescriptionHTML = await this.markdown.textMarkdownToHTML({ | ||
66 | markdown: videoChannel.ownerAccount.description, | ||
67 | withEmoji: true, | ||
68 | withHtml: true | ||
69 | }) | ||
61 | 70 | ||
62 | // After the markdown renderer to avoid layout changes | 71 | // After the markdown renderer to avoid layout changes |
63 | this.videoChannel = videoChannel | 72 | this.videoChannel = videoChannel |