fix: remove duplicate escapeHtml in viewer.js (already imported)
This commit is contained in:
parent
7c927ca54e
commit
33cfefcb20
@ -600,13 +600,8 @@ function renderFile(data) {
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Helpers
|
||||
// Helpers (escapeHtml imported from utils.js)
|
||||
// ---------------------------------------------------------------------------
|
||||
function escapeHtml(str) {
|
||||
if (!str) return "";
|
||||
return String(str).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
||||
}
|
||||
|
||||
function el(tag, attrs, children) {
|
||||
const e = document.createElement(tag);
|
||||
if (attrs) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user