unescape in preview.lua

This commit is contained in:
Akamaru 2016-11-23 18:57:15 +01:00
parent 5b09f7dba0
commit 69a3bae9db

View File

@ -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 = ''