diff --git a/lib/awful/menu.lua.in b/lib/awful/menu.lua.in index ade0a12fc..9df7fb076 100644 --- a/lib/awful/menu.lua.in +++ b/lib/awful/menu.lua.in @@ -208,10 +208,11 @@ local function add_item(data, num, item_info) -- Create the item label widget local label = widget({ type = "textbox" }) local key = '' - label.text = string.gsub(item_info[1], "&(%w)", function (l) - key= string.lower(l) - return ""..l.."" - end, 1) + label.text = string.gsub(util.escape(item_info[1]), "&(%w)", + function (l) + key = string.lower(l) + return ""..l.."" + end, 1) -- Set icon if needed local iconbox if item_info[3] then