From 1b39137e321cccd4ef005f2b1e159859cd00f819 Mon Sep 17 00:00:00 2001 From: Adam Bem Date: Fri, 12 May 2023 09:51:05 +0200 Subject: [PATCH] Removed commented and unused code --- Frontend/assets/scripts/tools/scripts.js | 32 ++++++++---------------- Frontend/index.html | 1 - Frontend/tools/mock.html | 23 ----------------- 3 files changed, 10 insertions(+), 46 deletions(-) diff --git a/Frontend/assets/scripts/tools/scripts.js b/Frontend/assets/scripts/tools/scripts.js index 9c89779..3532208 100644 --- a/Frontend/assets/scripts/tools/scripts.js +++ b/Frontend/assets/scripts/tools/scripts.js @@ -65,28 +65,6 @@ function clearDataField() { } -/** - * The `escapeHTML` function is used to escape special characters in an HTML element's innerHTML property. - * This is done to prevent these characters from being interpreted as HTML tags or attributes, - * which could potentially cause security vulnerabilities or unintended behavior. - * - * @function - * @name escapeHTML - * @kind function - * @param {any} element - * @returns {void} - */ -function escapeHTML(elementID) { - document.getElementById(elementID).innerHTML = document.getElementById(elementID).innerHTML - .replace(/&/g, "&") - .replace(//g, ">") - .replace(/"/g, """) - .replace(/'/g, "'"); -} - - - /** * It fills the XML area with a sample XML. * @@ -111,6 +89,16 @@ function fillDefaultXML(element) { } } + +/** +* It fills the XSD area with a sample XSD and XML area with matching XML. +* +* @function +* @name fillDefaultXSD +* @kind function +* @param {any} element +* @returns {void} +*/ function fillDefaultXSD(){ const serverAddress = window.location.protocol + "//" + window.location.hostname + ":8086"; fetch(serverAddress + "/assets/samples/sampleXSD.xsd") diff --git a/Frontend/index.html b/Frontend/index.html index 4073ca4..d8aeaa6 100644 --- a/Frontend/index.html +++ b/Frontend/index.html @@ -5,7 +5,6 @@ - Release11 Web Tools diff --git a/Frontend/tools/mock.html b/Frontend/tools/mock.html index 86ceb67..6039601 100644 --- a/Frontend/tools/mock.html +++ b/Frontend/tools/mock.html @@ -5,10 +5,8 @@ - -
@@ -155,14 +153,6 @@ -
@@ -179,19 +169,6 @@
-