From 9af6c5536ae48dad1ebd0434c8bb427ba199fb94 Mon Sep 17 00:00:00 2001 From: cutls Date: Sat, 10 Dec 2022 12:29:49 +0900 Subject: [PATCH] Fix emoji in HTML attribute value --- app/js/tl/parse.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/js/tl/parse.js b/app/js/tl/parse.js index e53adbe0..fc233c9b 100644 --- a/app/js/tl/parse.js +++ b/app/js/tl/parse.js @@ -845,7 +845,10 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type, onlyContent) { }) } //デフォ絵文字 - content = twemoji.parse(content) + const contentElement = document.createElement('div') + contentElement.innerHTML = content + const emojified = twemoji.parse(contentElement) + content = emojified.innerHTML if (dis_name) { dis_name = twemoji.parse(dis_name)