From 124c6f9b231eb15643b96e0a3f6f1526efe263c6 Mon Sep 17 00:00:00 2001 From: actionless Date: Thu, 23 Apr 2020 13:44:34 +0200 Subject: [PATCH] fix(naughty: widget: _markup): correctly un-escape "<span property=value>" --- lib/naughty/widget/_markup.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/naughty/widget/_markup.lua b/lib/naughty/widget/_markup.lua index 3077c02b0..0a3fcfdde 100644 --- a/lib/naughty/widget/_markup.lua +++ b/lib/naughty/widget/_markup.lua @@ -9,7 +9,7 @@ local escape_pattern = "[<>&]" local escape_subs = { ['<'] = "<", ['>'] = ">", ['&'] = "&" } -- Also reverse escaping some allowed tags because people actually use them. -local escape_undo = {['<span '] = ""} for _, allowed in ipairs {'b', 'i', 'u', 'span'} do escape_undo['<' ..allowed..'>'] = "<" ..allowed..">"