Removed commented and unused code
This commit is contained in:
@@ -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, """)
|
||||
.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")
|
||||
|
||||
Reference in New Issue
Block a user