From 987df0afab5a40a6989129f5c9089682b3040df2 Mon Sep 17 00:00:00 2001 From: nnposter Date: Mon, 9 Nov 2026 01:53:31 +0000 Subject: [PATCH] Collapse whitespace to align more closely with HTML rendering --- scripts/http-title.nse | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/http-title.nse b/scripts/http-title.nse index 72f310b6f..f64c11195 100644 --- a/scripts/http-title.nse +++ b/scripts/http-title.nse @@ -58,7 +58,7 @@ action = function(host, port) local display_title = title if display_title and display_title ~= "" then - display_title = string.gsub(display_title , "[\n\r\t]", "") + display_title = string.gsub(display_title, "%s+", " ") if #display_title > 65 then display_title = string.sub(display_title, 1, 62) .. "..." end