フレニコのアンケート選択肢をHTMLとして解釈する
This commit is contained in:
parent
71630b8841
commit
97147b6c86
|
@ -50,6 +50,7 @@
|
|||
<w>navi</w>
|
||||
<w>nicodic</w>
|
||||
<w>nicoru</w>
|
||||
<w>nicovideo</w>
|
||||
<w>noto</w>
|
||||
<w>nsfw</w>
|
||||
<w>okhttp</w>
|
||||
|
|
|
@ -184,13 +184,14 @@ class NicoEnquete(
|
|||
val options = DecodeOptions(
|
||||
context,
|
||||
emojiMapCustom = status.custom_emojis,
|
||||
emojiMapProfile = status.profile_emojis
|
||||
emojiMapProfile = status.profile_emojis,
|
||||
decodeEmoji = true
|
||||
)
|
||||
for(i in 0 until size) {
|
||||
val text = reWhitespace
|
||||
.matcher(stringArray[i].sanitizeBDI())
|
||||
.replaceAll(" ")
|
||||
val decoded_text = options.decodeEmoji(text)
|
||||
val decoded_text = options.decodeHTML(text)
|
||||
|
||||
items.add(Choice(text, decoded_text))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue