std::string html_entities(std::string str);
std::string html_entities_to_console(std::string str);
+typedef std::pair<std::string::size_type, std::string::size_type> CommentZone;
+void find_html_comments(const std::string &str, std::vector<CommentZone> &result);
+void remove_html_comments(std::string &str);
+void remove_html_comments(std::string &str, const std::vector<CommentZone> &comments);
+
std::string sanitize_for_logging(const std::string &str, const char replace_with='?');
std::string escape(const std::string &s);