ruleState.type && ruleState.content); } async function runValidateFn | |
hyva.removeScripts = (contentNode) => { const scripts = contentNode.getElementsByTagName | |
targetSelector */ hyva.replaceDomElement = (targetSelector, content) => { // Parse the | |
manipulating the DOM. const scripts = Array.from | |
parser.parseFromString(content, text/html); const contentNode | |
rootElement) => { const selector = button, [href], input, select | |
targetSelector, content) => { // Parse the content and extract | |
getElementsByTagName(script)); // Iterate over all script tags | |
the original (non-executing) script from the | |
escapeHtml(m.type ? m.content : m) : m | |
const doc = parser.parseFromString(content, text/html | |
over all script tags to duplicate+inject | |