Apply individual fixes before removing HTML.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
tastytea 2019-12-28 23:31:10 +01:00
parent bb86f321b5
commit c81d60242c
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 2 additions and 2 deletions

View File

@ -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);