add utf8.escape_xml and alias - string.escape_xml

This commit is contained in:
MihailRis
2025-11-23 19:52:49 +03:00
parent 91cb5ab7d8
commit 6810f9a03a
4 changed files with 37 additions and 0 deletions
+3
View File
@@ -10,6 +10,9 @@ namespace util {
/// @brief Function used for string serialization in text formats
std::string escape(std::string_view s, bool escapeUnicode=true);
/// @brief Escape all special XML characters
std::string escape_xml(std::string_view s);
/// @brief Function used for error messages
std::string quote(const std::string& s);