mirror of
https://github.com/rad4day/Waybar.git
synced 2025-07-13 14:42:29 +02:00

gtk requires some chars (<>&"') to be encoded for them to render properly. `sanitize_str` sanitizes raw strings that have such chars and returns a properly encoded string
7 lines
132 B
C++
7 lines
132 B
C++
#pragma once
|
|
#include <string>
|
|
|
|
namespace waybar::util {
|
|
std::string sanitize_string(std::string str);
|
|
} // namespace waybar::util
|