Move XML escaping to a separate function

This commit is contained in:
Robbert van der Helm
2021-06-28 12:41:53 +02:00
parent fed7fb84c0
commit 388d9739a9
3 changed files with 40 additions and 27 deletions
+5
View File
@@ -133,6 +133,11 @@ bool is_watchdog_timer_disabled();
*/
bool pid_running(pid_t pid);
/**
* Escape XML entities within a string. Used inside of desktop notifications.
*/
std::string xml_escape(std::string string);
/**
* A RAII wrapper that will temporarily enable the FTZ flag so that denormals
* are automatically flushed to zero, returning to whatever the flag was