Use hexadecimal instead of named HTML entities in replacements.
continuous-integration/drone/push Build is failing Details

See <https://www.rssboard.org/rss-profile#data-types-characterdata>.
This commit is contained in:
tastytea 2021-04-21 12:42:26 +02:00
parent 6a4e15df81
commit 7438f878c2
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,5 @@
/* This file is part of gitea2rss.
* 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
* it under the terms of the GNU General Public License as published by
@ -15,6 +15,7 @@
*/
#include "gitea2rss.hpp"
#include <cstdlib>
#include <map>
#include <regex>
@ -50,8 +51,8 @@ string get_project(const string &url)
string escape_some_html(string html)
{
const std::map<const char, const string> names = {{'<', "&lt;"},
{'>', "&gt;"}};
const std::map<const char, const string> names = {{'<', "&#x3C;"},
{'>', "&#x3E;"}};
for (const auto &pair : names)
{