diff --git a/src/document.cpp b/src/document.cpp index 7bdbb07..a93a556 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -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. diff --git a/src/document.hpp b/src/document.hpp index b219949..d2f641a 100644 --- a/src/document.hpp +++ b/src/document.hpp @@ -1,5 +1,5 @@ /* This file is part of mastorss. - * Copyright © 2019, 2020 tastytea + * Copyright © 2019-2021 tastytea * * 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 @@ -84,7 +84,7 @@ private: */ void download(const string &uri, bool temp_redirect = false); void parse_rss(const pt::ptree &tree); - [[nodiscard]] string remove_html(string html) const; + [[nodiscard]] static string remove_html(string html); [[nodiscard]] static string extract_location(const curl_wrapper::answer &answer); string add_hashtags(const string &text);