diff --git a/src/htmx.js b/src/htmx.js
index 5dadbd3a..96bb2c20 100644
--- a/src/htmx.js
+++ b/src/htmx.js
@@ -692,9 +692,13 @@ return (function () {
var TITLE_FINDER = /
([\s\S]+?)<\/title>/im;
function findTitle(content) {
- var result = TITLE_FINDER.exec(content);
- if (result) {
- return result[1];
+ if(content.indexOf('') > -1 &&
+ (content.indexOf('