Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
content = content.replace(re, "");
string = "x-scope " + tags[i] + "-0";
re = new RegExp(string, "g");
content = content.replace(re, "");
}
}
// remove empty class structures
content = content.replace(/\sclass=\"\"/g, "");
content = content.replace(/\sclass=\"\s\"/g, "");
// re-apply contenteditable if needed
this._applyContentEditable(this.editMode);
// set active again
window.HaxStore.write("activeNode", __active, this);
window.HaxStore.write("activeContainerNode", __active, this);
// oh one last thing. escape all script/style tags
content = encapScript(content);
if (this.globalPreferences.haxDeveloperMode) {
console.warn(content);
}
return content;
}
/**
content = content.replace(re, "");
string = "x-scope " + tags[i] + "-0";
re = new RegExp(string, "g");
content = content.replace(re, "");
}
}
// remove empty class structures
content = content.replace(/\sclass=\"\"/g, "");
content = content.replace(/\sclass=\"\s\"/g, "");
// re-apply contenteditable if needed
this._applyContentEditable(this.editMode);
// set active again
window.HaxStore.write("activeNode", __active, this);
window.HaxStore.write("activeContainerNode", __active, this);
// oh one last thing. escape all script/style tags
content = encapScript(content);
if (this.globalPreferences.haxDeveloperMode) {
console.warn(content);
}
return content;
}
/**
setTimeout(() => {
html = encapScript(html);
let fragment = document.createElement("div");
fragment.insertAdjacentHTML("beforeend", html);
while (fragment.firstChild !== null) {
if (typeof fragment.firstChild.tagName !== typeof undefined) {
// ensure import doesn't import non-sandbox safe things!
if (
window.HaxStore.instance._isSandboxed &&
fragment.firstChild.tagName.toLowerCase() === "iframe"
) {
// Create a replacement tag of the desired type
var replacement = document.createElement("webview");
// Grab all of the original's attributes, and pass them to the replacement
for (
var j = 0, l = fragment.firstChild.attributes.length;
j < l;
++j
setTimeout(() => {
html = encapScript(html);
let fragment = document.createElement("div");
fragment.insertAdjacentHTML("beforeend", html);
while (fragment.firstChild !== null) {
if (typeof fragment.firstChild.tagName !== typeof undefined) {
// ensure import doesn't import non-sandbox safe things!
if (
window.HaxStore.instance._isSandboxed &&
fragment.firstChild.tagName.toLowerCase() === "iframe"
) {
// Create a replacement tag of the desired type
var replacement = document.createElement("webview");
// Grab all of the original's attributes, and pass them to the replacement
for (
var j = 0, l = fragment.firstChild.attributes.length;
j < l;
++j