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.description = [&]
|
||||
{
|
||||
string desc
|
||||
{remove_html(rssitem.get<string>("description"))};
|
||||
string desc{rssitem.get<string>("description")};
|
||||
for (const auto &fix : _profiledata.fixes)
|
||||
{
|
||||
desc = regex_replace(desc, regex{fix}, "");
|
||||
}
|
||||
desc = remove_html(desc);
|
||||
return add_hashtags(desc);
|
||||
}();
|
||||
item.guid = move(guid);
|
||||
|
|
Loading…
Reference in New Issue
Block a user