diff options
| author | George Hazan <george.hazan@gmail.com> | 2025-04-19 15:31:07 +0300 |
|---|---|---|
| committer | George Hazan <george.hazan@gmail.com> | 2025-04-19 15:31:07 +0300 |
| commit | 7627c1bdd4aa2ce06d0a68495e6d5ee1feb07e70 (patch) | |
| tree | 0cd9903524dc3fef8aded166eae1813703e39c7e /plugins | |
| parent | c68e738245aa8016899e4ee85619baaa7660c2e9 (diff) | |
fixes #4994 (Telegram: проблема с тегами при пересылке сообщения)
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/NewStory/src/templates.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/NewStory/src/templates.cpp b/plugins/NewStory/src/templates.cpp index 20564773b1..0f6cc4eb66 100644 --- a/plugins/NewStory/src/templates.cpp +++ b/plugins/NewStory/src/templates.cpp @@ -175,7 +175,9 @@ static void AppendString(CMStringW &buf, const wchar_t *p, ItemData *pItem) if (auto *p2 = wcsstr(p1, L"[/url]")) {
CMStringW wszDescr(p1, int(p2 - p1));
- buf.AppendFormat(L"<a class=\"link\" href=\"%s\">%s</a>", wszUrl.c_str(), wszDescr.c_str());
+ buf.AppendFormat(L"<a class=\"link\" href=\"%s\">", wszUrl.c_str());
+ AppendString(buf, wszDescr, pItem);
+ buf.Append(L"</a>");
p = p2 + 5;
}
}
|
