summaryrefslogtreecommitdiffstats
path: root/Server/Plugins/InfoReg.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Server/Plugins/InfoReg.lua')
-rw-r--r--Server/Plugins/InfoReg.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/Server/Plugins/InfoReg.lua b/Server/Plugins/InfoReg.lua
index 74e1196af..54cab4ab0 100644
--- a/Server/Plugins/InfoReg.lua
+++ b/Server/Plugins/InfoReg.lua
@@ -233,10 +233,14 @@ end
local function CompileView(a_Content)
content = 'return table.concat({[===[' .. a_Content .. ']===]})';
content = content:gsub("%{=%{(.-)%}=%}", function(logic)
+ logic = logic
+ :gsub("<>(.-)</>", "table.insert(__RESULTING_CONTENT__, [===[%1]===])")
+ :gsub("%{%{(.-)%}%}", "table.insert(__RESULTING_CONTENT__, cWebAdmin:GetHTMLEscapedString(%1))");
+
return [[]===], (
function()
local __RESULTING_CONTENT__ = {};
- ]] .. logic:gsub("%{%{(.-)%}%}", "table.insert(__RESULTING_CONTENT__, cWebAdmin:GetHTMLEscapedString(%1))") .. [[
+ ]] .. logic .. [[
return table.concat(__RESULTING_CONTENT__)
end
)(), [===[