Removed html info from the alert msg downloaded

Implements #5260
This commit is contained in:
Matteo Biscosi 2021-05-03 15:08:48 +02:00
parent bec4b78961
commit ed0033ab66
3 changed files with 19 additions and 4 deletions

View file

@ -4290,6 +4290,17 @@ function builMapHREF(ip_address, vlan_id, map, default_page)
end
end
function remove_html_string(msg)
if (not msg) or (isEmptyString(msg)) then
return ""
end
local end_num = msg:find(">[^>]*$")
local begin_num = msg:find("<")
msg = msg:sub(1, begin_num - 1) .. msg:sub(end_num + 1, -1)
return msg
end
-- #####################