diff options
author | George Hazan <george.hazan@gmail.com> | 2024-10-08 14:30:39 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-10-08 14:30:39 +0300 |
commit | a7551fa14b3ab1d5f999182313b0a820272e2be6 (patch) | |
tree | 2c0104dae3118bdabfd33851e373ad6c52241b22 /plugins/NewStory | |
parent | dc3eae6a6b6c3c5ebb9caeed157736c25010519c (diff) |
fixes #4718 (NewStory: тэги корёжит, если в описании картинки есть эмодзи)
Diffstat (limited to 'plugins/NewStory')
-rw-r--r-- | plugins/NewStory/src/templates.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/NewStory/src/templates.cpp b/plugins/NewStory/src/templates.cpp index 2c9ac5c222..dc0c97e928 100644 --- a/plugins/NewStory/src/templates.cpp +++ b/plugins/NewStory/src/templates.cpp @@ -55,10 +55,9 @@ static void AppendImage(CMStringW &buf, const CMStringW &wszUrl, const CMStringW if (pImage->GetHeight() < uMaxHeight)
iHeight = pImage->GetHeight();
- buf.AppendFormat(L"<img style=\"height: %d;\" src=\"%s\" title=\"%s\" alt=\"%s\"/><br>",
- iHeight, wszUrl.c_str(), wszDescr.c_str(), wszDescr.c_str());
+ buf.AppendFormat(L"<img style=\"height: %d;\" src=\"%s\"/><br>", iHeight, wszUrl.c_str());
}
- else buf.AppendFormat(L"<img src=\"%s\" title=\"%s\" alt=\"%s\"/><br>", wszUrl.c_str(), wszUrl.c_str(), wszUrl.c_str());
+ else buf.AppendFormat(L"<img src=\"%s\"/><br>", wszUrl.c_str());
}
else buf.AppendFormat(L"<a class=\"link\" href=\"%s\">%s</a>", wszUrl.c_str(), wszDescr.c_str());
}
|