|
Dunst
Lightweight notification daemon
|
Markup handling for notifications body. More...
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Enumerations | |
| enum | markup_mode { MARKUP_NULL , MARKUP_NO , MARKUP_STRIP , MARKUP_FULL } |
Functions | |
| char * | markup_strip (char *str) |
| Strip any markup from text; turn it in to plain text. | |
| void | markup_strip_a (char **str, char **urls) |
| Remove HTML hyperlinks of a string. | |
| void | markup_strip_img (char **str, char **urls) |
| Remove img-tags of a string. | |
| char * | markup_transform (char *str, enum markup_mode markup_mode) |
Transform the string in accordance with markup_mode and settings.ignore_newline | |
Markup handling for notifications body.
Definition in file markup.h.
| char * markup_strip | ( | char * | str | ) |
Strip any markup from text; turn it in to plain text.
For well-formed markup, the following two commands should be roughly equivalent:
out = markup_strip(in); pango_parse_markup(in, -1, 0, NULL, &out, NULL, NULL);
However, pango_parse_markup() balks at invalid markup; markup_strip() shouldn't care if there is invalid markup.
| void markup_strip_a | ( | char ** | str, |
| char ** | urls ) |
| void markup_strip_img | ( | char ** | str, |
| char ** | urls ) |