diff --git a/src/htmx.js b/src/htmx.js index 0d533105..b08ad8c6 100644 --- a/src/htmx.js +++ b/src/htmx.js @@ -708,7 +708,7 @@ return (function () { } function findTitle(content) { - if (content.indexOf('') > -1) { + if (content.indexOf('<title') > -1) { var contentWithSvgsRemoved = content.replace(/<svg(\s[^>]*>|>)([\s\S]*?)<\/svg>/gim, ''); var result = contentWithSvgsRemoved.match(/<title(\s[^>]*>|>)([\s\S]*?)<\/title>/im);