From 394cb4ffeab6d59ffc31393ffed64a044d036887 Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Thu, 29 May 2014 02:17:58 -0400 Subject: Add tags for handling tainted text --- readme.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'readme.md') diff --git a/readme.md b/readme.md index ca3a15f..9086498 100644 --- a/readme.md +++ b/readme.md @@ -202,6 +202,22 @@ For the output template: (left mouse button). Using old syntax (without backticks surrounding `command`) will result in `button` attribute being ignored. +- `` allows the encapsulation of arbitrary text `str` (which + must be `len` `Char`s long, where `len` is encoded as a decimal sequence). + Careful use of this and `UnsafeStdinReader`, for example, permits window + managers to feed xmobar strings with `` tags mixed with un-trusted + content (e.g. window titles). For example, if xmobar is invoked as + + ```xmobar -c "[Run UnsafeStdinReader]" -t "%UnsafeStdinReader%"``` + + and receives on standard input the line + + ```foo/>``` + + then it will display the text ```foo```, + which, when clicked, will cause `test` to be echoed. + Other configuration options: `font` -- cgit v1.2.3