diff options
Diffstat (limited to 'src/zen/frontend/html/logs.js')
| -rw-r--r-- | src/zen/frontend/html/logs.js | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/zen/frontend/html/logs.js b/src/zen/frontend/html/logs.js index d9646ba39..f0498dde2 100644 --- a/src/zen/frontend/html/logs.js +++ b/src/zen/frontend/html/logs.js @@ -2,6 +2,7 @@ // Log viewer: filterable list of captured Logging.LogMessage events. import { getLogs } from "./api.js"; +import { escapeHtml } from "./util.js"; // UE ELogVerbosity::Type values — lower number = more severe. const VERBOSITY_LABELS = [ @@ -16,16 +17,6 @@ const VERBOSITY_LABELS = [ "All", ]; -function escapeHtml(s) { - return String(s).replace(/[&<>"']/g, (c) => ({ - "&": "&", - "<": "<", - ">": ">", - "\"": """, - "'": "'", - }[c])); -} - function verbosityLabel(v) { return VERBOSITY_LABELS[v] || `V${v}`; } |