mirror of
				https://github.com/lxsang/antd-web-apps
				synced 2025-10-30 10:03:02 +01:00 
			
		
		
		
	add unescape
This commit is contained in:
		| @@ -94,7 +94,7 @@ function PostController:id(pid) | ||||
|         return self:notfound("No post found") | ||||
|     end | ||||
|     data = data[1] | ||||
|     data.rendered = data.rendered:gsub("%%", "%%%%") | ||||
|     data.rendered = utils.unescape(data.rendered):gsub("%%", "%%%%") | ||||
|     local a, b = data.rendered:find("<[Hh]1[^>]*>") | ||||
|     if a then | ||||
|         local c, d = data.rendered:find("</[Hh]1>") | ||||
|   | ||||
| @@ -39,7 +39,7 @@ | ||||
|     <div class = "blogentry"> | ||||
|         <div class = "shortcontent"> | ||||
|             <?lua | ||||
|                 local content = data.rendered:gsub("%%","%%%%") | ||||
|                 local content = utils.unescape(data.rendered):gsub("%%","%%%%") | ||||
|                 local r, s = content:find("(<hr/?>)") | ||||
|                 local title = nil | ||||
|                 if r then  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user