mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2026-10-28 23:42:58 +00:00
MessageEntity#asHtmlSource
This commit is contained in:
1 parent
1bdcf3ae60
commit
609a474874
14 files changed
+67
-33
No files matched your search
@@ -9,3 +9,17 @@ fun String.toMarkdown(): String {
|
||||
"\\_"
|
||||
)
|
||||
}
|
||||
|
||||
fun String.toHtml(): String = replace(
|
||||
"<",
|
||||
"<"
|
||||
).replace(
|
||||
">",
|
||||
">"
|
||||
).replace(
|
||||
"&",
|
||||
"&"
|
||||
).replace(
|
||||
"\"",
|
||||
"""
|
||||
)
|
||||
Reference in new issue
Block a user