mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Fixes Telegram Reported alerts contain HTML (#7090)
This commit is contained in:
parent
1e960d5ec5
commit
68722d86d7
1 changed files with 1 additions and 0 deletions
|
|
@ -151,6 +151,7 @@ function noHtml(s)
|
|||
local cleaned = s:gsub("<[aA] .->(.-)</[aA]>","%1")
|
||||
:gsub("<abbr .->(.-)</abbr>","%1")
|
||||
:gsub("<span .->(.-)</span>","%1")
|
||||
:gsub("<button .->(.-)</button>","%1")
|
||||
:gsub("%s*<[iI].->(.-)</[iI]>","%1")
|
||||
:gsub("<.->(.-)</.->","%1") -- note: keep as last as this does not handle nested tags
|
||||
:gsub("^%s*(.-)%s*$", "%1")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue