1
0
mirror of synced 2026-08-05 07:16:54 +00:00

FIX: info not working, not suppressing hidden tags from report (#696)

2 small fixes

1. The info button was not properly working post refactor
2. Suppress any secured tags from report input
This commit is contained in:
Sam
2024-07-02 16:38:33 +10:00
committed by GitHub
parent a5a39dd2ee
commit b671ffe7fa
4 changed files with 86 additions and 3 deletions
@@ -5,6 +5,10 @@ export const IMAGE_MARKDOWN_REGEX =
/!\[(.*?)\|(\d{1,4}x\d{1,4})(,\s*\d{1,3}%)?(.*?)\]\((upload:\/\/.*?)\)(?!(.*`))/g;
export function jsonToHtml(json) {
if (json === null) {
return "null";
}
if (typeof json !== "object") {
return escapeExpression(json);
}