task: proper XML escaping in notification

This commit is contained in:
Roland Hieber 2016-07-22 06:51:30 +02:00
parent 0611167176
commit 233f424dfc
1 changed files with 3 additions and 3 deletions

View File

@ -52,7 +52,7 @@ function task:show(scr_pos)
c_text = "<span font='" c_text = "<span font='"
.. task.font .. " " .. task.font .. " "
.. task.font_size .. "'>" .. task.font_size .. "'>"
.. f:read("*all"):gsub("\n*$", "") .. awful.util.escape(f:read("*all"):gsub("\n*$", ""))
.. "</span>" .. "</span>"
f:close() f:close()
@ -75,7 +75,7 @@ function task:prompt_add()
c_text = "\n<span font='" c_text = "\n<span font='"
.. task.font .. " " .. task.font .. " "
.. task.font_size .. "'>" .. task.font_size .. "'>"
.. f:read("*all") .. awful.util.escape(f:read("*all"))
.. "</span>" .. "</span>"
f:close() f:close()
@ -107,7 +107,7 @@ function task:prompt_search()
c_text = "<span font='" c_text = "<span font='"
.. task.font .. " " .. task.font .. " "
.. task.font_size .. "'>" .. task.font_size .. "'>"
.. c_text .. awful.util.escape(c_text)
.. "</span>" .. "</span>"
end end