Apply individual fixes before removing HTML.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
bb86f321b5
commit
c81d60242c
|
@ -175,12 +175,12 @@ void Document::parse_rss(const pt::ptree &tree)
|
||||||
Item item;
|
Item item;
|
||||||
item.description = [&]
|
item.description = [&]
|
||||||
{
|
{
|
||||||
string desc
|
string desc{rssitem.get<string>("description")};
|
||||||
{remove_html(rssitem.get<string>("description"))};
|
|
||||||
for (const auto &fix : _profiledata.fixes)
|
for (const auto &fix : _profiledata.fixes)
|
||||||
{
|
{
|
||||||
desc = regex_replace(desc, regex{fix}, "");
|
desc = regex_replace(desc, regex{fix}, "");
|
||||||
}
|
}
|
||||||
|
desc = remove_html(desc);
|
||||||
return add_hashtags(desc);
|
return add_hashtags(desc);
|
||||||
}();
|
}();
|
||||||
item.guid = move(guid);
|
item.guid = move(guid);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user