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)
|
local data = json.decode(res)
|
||||||
|
|
||||||
if data.title then
|
if data.title then
|
||||||
title = data.title:gsub('"', '\\"')
|
title = unescape(data.title:gsub('"', '\\"'))
|
||||||
else
|
else
|
||||||
title = 'Kein Titel'
|
title = 'Kein Titel'
|
||||||
end
|
end
|
||||||
|
|
||||||
if data.description then
|
if data.description then
|
||||||
description = data.description:gsub('"', '\\"')
|
description = unescape(data.description:gsub('"', '\\"'))
|
||||||
description_in_text = '\n'..description
|
description_in_text = '\n'..description
|
||||||
else
|
else
|
||||||
description_in_text = ''
|
description_in_text = ''
|
||||||
|
Reference in New Issue
Block a user