Various cosmetic fixes in host and flow pages

Service map is not reported when there are no services listed
This commit is contained in:
Luca Deri 2020-11-01 13:54:24 +01:00
parent cc2df1d66e
commit 9d232d614c
4 changed files with 24 additions and 18 deletions

View file

@ -234,14 +234,17 @@ function page_utils.safe_html(s)
return ''
end
return string.gsub(s, "[}{\">/<'&]", {
["&"] = "&amp;",
["<"] = "&lt;",
[">"] = "&gt;",
['"'] = "&quot;",
["'"] = "&#39;",
["/"] = "&#47;"
ret = string.gsub(s, "[}{\">/<'&]",
{
["&"] = "&amp;",
["<"] = "&lt;",
[">"] = "&gt;",
['"'] = "&quot;",
["'"] = "&#39;",
["/"] = "&#47;"
})
return(ret)
end
-- #################################