diff --git a/src/renderer/components/watch-video-comments/watch-video-comments.js b/src/renderer/components/watch-video-comments/watch-video-comments.js index 02228c79..29cc2b1e 100644 --- a/src/renderer/components/watch-video-comments/watch-video-comments.js +++ b/src/renderer/components/watch-video-comments/watch-video-comments.js @@ -268,7 +268,8 @@ export default Vue.extend({ if (this.hideCommentLikes) { comment.likes = null } - comment.text = autolinker.link(comment.text.replace(/(<(?!br>)([^>]+)>)/ig, '')) + // strip html tags but keep
, , , , , + comment.text = autolinker.link(comment.text.replace(/(<(?!br|\/?(?:b|s|i)>)([^>]+)>)/ig, '')) if (comment.customEmojis.length > 0) { comment.customEmojis.forEach(emoji => { comment.text = comment.text.replace(emoji.text, `${emoji.text.substring(2, emoji.text.length - 1)}`)