mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2025-11-21 06:45:46 +00:00
MessageEntity#asHtmlSource
This commit is contained in:
@@ -9,3 +9,17 @@ fun String.toMarkdown(): String {
|
||||
"\\_"
|
||||
)
|
||||
}
|
||||
|
||||
fun String.toHtml(): String = replace(
|
||||
"<",
|
||||
"<"
|
||||
).replace(
|
||||
">",
|
||||
">"
|
||||
).replace(
|
||||
"&",
|
||||
"&"
|
||||
).replace(
|
||||
"\"",
|
||||
"""
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user