From ab71972c7e418be3a2a4d523c2f4ae5e9c5bfdd4 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 20 Aug 2008 16:55:10 +0000 Subject: [PATCH] * luci/libs: use pcdata() in striptags() --- libs/core/luasrc/util.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/core/luasrc/util.lua b/libs/core/luasrc/util.lua index 66e368299..d8fc66623 100644 --- a/libs/core/luasrc/util.lua +++ b/libs/core/luasrc/util.lua @@ -212,7 +212,7 @@ end -- @param value String containing the HTML text -- @return String with HTML tags stripped of function striptags(s) - return (s:gsub("]*>", " "):gsub("%s+", " ")) + return pcdata(s:gsub("]*>", " "):gsub("%s+", " ")) end --- Splits given string on a defined separator sequence and return a table -- 2.25.1