1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2025-07-24 01:29:48 +02:00

no need to unescape data

This commit is contained in:
lxsang
2020-06-18 09:53:15 +02:00
parent e11a7069a4
commit 16801d947d
2 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ function PostController:id(pid)
return self:notfound("No post found")
end
data = data[1]
data.rendered = utils.unescape(data.rendered):gsub("%%", "%%%%")
data.rendered = data.rendered:gsub("%%", "%%%%")
local a, b = data.rendered:find("<[Hh]1[^>]*>")
if a then
local c, d = data.rendered:find("</[Hh]1>")