forked from github/szkolny
[APIv2/Librus] Fix replacing weird XML tags in messages.
This commit is contained in:
parent
25f504cadf
commit
c83f20983b
@ -38,7 +38,7 @@ class LibrusMessagesGetMessage(
|
||||
val body = Base64.decode(message.select("Message").text(), Base64.DEFAULT)
|
||||
.toString(Charset.defaultCharset())
|
||||
.replace("\n", "<br>")
|
||||
.replace("<!\\[CDATA\\[", "")
|
||||
.replace("<![CDATA[", "")
|
||||
.replace("]]>", "")
|
||||
|
||||
messageObject.apply {
|
||||
|
Loading…
Reference in New Issue
Block a user