From fd10c7242659c1338c144cae06f59f84bee7f114 Mon Sep 17 00:00:00 2001 From: Siddharth VP Date: Thu, 23 Nov 2023 23:07:21 +0530 Subject: [PATCH] commons: replace `<` with `<` in summaries to handle HTML comments and tags --- reports/commons.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reports/commons.js b/reports/commons.js index e4f9f4d..cd5265e 100644 --- a/reports/commons.js +++ b/reports/commons.js @@ -189,6 +189,9 @@ function formatSummary(text) { return ''; } return text + // Ensure HTML comments are displayed as-is, and
and other tags don't render + .replace(/$&') .replace(/\[\[((?:Category|File|Image):.*?)\]\]/gi, '[[:$1]]') .replace(/~{3,5}/g, '$&');