Revert "naughty.widget: xml_escape message and title text"

This commit is contained in:
Emmanuel Lepage Vallée 2020-03-05 01:38:27 -05:00 committed by GitHub
parent 4a220d2da0
commit 3bd777f61a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -16,13 +16,12 @@
---------------------------------------------------------------------------- ----------------------------------------------------------------------------
local textbox = require("wibox.widget.textbox") local textbox = require("wibox.widget.textbox")
local gtable = require("gears.table") local gtable = require("gears.table")
local gstring = require("gears.string")
local beautiful = require("beautiful") local beautiful = require("beautiful")
local message = {} local message = {}
local function markup(notif, wdg) local function markup(notif, wdg)
local ret = gstring.xml_escape(notif.message) or "" local ret = notif.message or ""
local fg = notif.fg or beautiful.notification_fg local fg = notif.fg or beautiful.notification_fg
wdg:set_font(notif.font or beautiful.notification_font) wdg:set_font(notif.font or beautiful.notification_font)

View File

@ -16,13 +16,12 @@
---------------------------------------------------------------------------- ----------------------------------------------------------------------------
local textbox = require("wibox.widget.textbox") local textbox = require("wibox.widget.textbox")
local gtable = require("gears.table") local gtable = require("gears.table")
local gstring = require("gears.string")
local beautiful = require("beautiful") local beautiful = require("beautiful")
local title = {} local title = {}
local function markup(notif, wdg) local function markup(notif, wdg)
local ret = "<b>"..(gstring.xml_escape(notif.title) or "").."</b>" local ret = "<b>"..(notif.title or "").."</b>"
local fg = notif.fg or beautiful.notification_fg local fg = notif.fg or beautiful.notification_fg
wdg:set_font(notif.font or beautiful.notification_font) wdg:set_font(notif.font or beautiful.notification_font)