mirror of
https://github.com/ars3niy/tdlib-purple
synced 2025-08-31 05:55:08 +00:00
Remove formatting tags from outgoing messages
This commit is contained in:
@@ -810,7 +810,9 @@ static void appendText(std::vector<MessagePart> &parts, const char *s, size_t le
|
||||
parts.emplace_back();
|
||||
|
||||
std::string sourceText(s, len);
|
||||
char *newText = purple_unescape_html(sourceText.c_str());
|
||||
char *halfNewText = purple_markup_strip_html(sourceText.c_str());
|
||||
char *newText = purple_unescape_html(halfNewText);
|
||||
g_free(halfNewText);
|
||||
|
||||
const char *remaining = newText;
|
||||
size_t lenRemaining = strlen(newText);
|
||||
|
Reference in New Issue
Block a user