This commit is contained in:
Carson Gross 2024-01-25 18:07:38 -07:00
parent 2b17cef955
commit dee3abbd9a

View File

@ -317,7 +317,7 @@ var htmx = (function() {
}
}
}
});
})
}
/**
@ -362,7 +362,7 @@ var htmx = (function() {
}
if (fragment) {
if (htmx.config.allowScriptTags) {
normaliseScriptTags(fragment);
normaliseScriptTags(fragment)
} else {
// remove all script tags if scripts are disabled
fragment.querySelectorAll('script').forEach((script) => script.remove())