Fix emoji in HTML attribute value
This commit is contained in:
parent
29d6146e02
commit
e4a9eca514
|
@ -845,7 +845,11 @@ 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) {
|
if (dis_name) {
|
||||||
dis_name = twemoji.parse(dis_name)
|
dis_name = twemoji.parse(dis_name)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user