Make Document::remove_html static.
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
2ad4b46551
commit
5275c1d9e3
|
@ -233,7 +233,7 @@ void Document::parse_rss(const pt::ptree &tree)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
string Document::remove_html(string html) const
|
string Document::remove_html(string html)
|
||||||
{
|
{
|
||||||
html = mastodonpp::unescape_html(html); // Decode HTML entities.
|
html = mastodonpp::unescape_html(html); // Decode HTML entities.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* This file is part of mastorss.
|
/* This file is part of mastorss.
|
||||||
* Copyright © 2019, 2020 tastytea <tastytea@tastytea.de>
|
* Copyright © 2019-2021 tastytea <tastytea@tastytea.de>
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -84,7 +84,7 @@ private:
|
||||||
*/
|
*/
|
||||||
void download(const string &uri, bool temp_redirect = false);
|
void download(const string &uri, bool temp_redirect = false);
|
||||||
void parse_rss(const pt::ptree &tree);
|
void parse_rss(const pt::ptree &tree);
|
||||||
[[nodiscard]] string remove_html(string html) const;
|
[[nodiscard]] static string remove_html(string html);
|
||||||
[[nodiscard]] static string
|
[[nodiscard]] static string
|
||||||
extract_location(const curl_wrapper::answer &answer);
|
extract_location(const curl_wrapper::answer &answer);
|
||||||
string add_hashtags(const string &text);
|
string add_hashtags(const string &text);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user