[APIv2/Librus] Fix replacing weird XML tags in messages.

This commit is contained in:
Kacper Ziubryniewicz 2019-12-04 23:59:09 +01:00
parent 25f504cadf
commit c83f20983b

View File

@ -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 {