unescape in preview.lua
This commit is contained in:
parent
5b09f7dba0
commit
69a3bae9db
@ -21,13 +21,13 @@ function preview:inline_callback(inline_query, config, matches)
|
||||
local data = json.decode(res)
|
||||
|
||||
if data.title then
|
||||
title = data.title:gsub('"', '\\"')
|
||||
title = unescape(data.title:gsub('"', '\\"'))
|
||||
else
|
||||
title = 'Kein Titel'
|
||||
end
|
||||
|
||||
if data.description then
|
||||
description = data.description:gsub('"', '\\"')
|
||||
description = unescape(data.description:gsub('"', '\\"'))
|
||||
description_in_text = '\n'..description
|
||||
else
|
||||
description_in_text = ''
|
||||
|
Reference in New Issue
Block a user