diff --git a/src/htmx.js b/src/htmx.js index 719d3ba7..11c2d5e0 100644 --- a/src/htmx.js +++ b/src/htmx.js @@ -1882,7 +1882,7 @@ return (function () { function processHxOn(elt) { var hxOnValue = getAttributeValue(elt, 'hx-on'); - if (hxOnValue) { + if (hxOnValue && htmx.config.allowEval) { var handlers = {} var lines = hxOnValue.split("\n"); var currentEvent = null;