From 7438f878c221623e6265ea2bcb7a39a013948ea0 Mon Sep 17 00:00:00 2001 From: tastytea Date: Wed, 21 Apr 2021 12:42:26 +0200 Subject: [PATCH] Use hexadecimal instead of named HTML entities in replacements. See . --- src/strings.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/strings.cpp b/src/strings.cpp index 0cad808..0018d29 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -1,5 +1,5 @@ /* This file is part of gitea2rss. - * 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 @@ -15,6 +15,7 @@ */ #include "gitea2rss.hpp" + #include #include #include @@ -50,8 +51,8 @@ string get_project(const string &url) string escape_some_html(string html) { - const std::map names = {{'<', "<"}, - {'>', ">"}}; + const std::map names = {{'<', "<"}, + {'>', ">"}}; for (const auto &pair : names) {