mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2024-11-28 12:53:31 -06:00
[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)
|
val body = Base64.decode(message.select("Message").text(), Base64.DEFAULT)
|
||||||
.toString(Charset.defaultCharset())
|
.toString(Charset.defaultCharset())
|
||||||
.replace("\n", "<br>")
|
.replace("\n", "<br>")
|
||||||
.replace("<!\\[CDATA\\[", "")
|
.replace("<![CDATA[", "")
|
||||||
.replace("]]>", "")
|
.replace("]]>", "")
|
||||||
|
|
||||||
messageObject.apply {
|
messageObject.apply {
|
||||||
|
Loading…
Reference in New Issue
Block a user