35 std::ostringstream ss;
36 for(
const char c : text) {
38 case '&': ss <<
"&";
break;
39 case '<': ss <<
"<";
break;
40 case '>': ss <<
">";
break;
41 case '\'': ss <<
"'";
break;
42 case '"': ss <<
""";
break;
54 std::ostringstream ss;
55 for(
const char c : text) {
Collection of helper functions relating to Pango formatting.
std::string semi_escape_text(const std::string &text)
std::string escape_text(const std::string &text)
Escapes the pango markup characters in a text.