Fix titles not being trimmed sometimes

pull/458/head
David A Roberts 6 years ago committed by Gijs
parent d4b842c82a
commit afcc4b8e49

@ -355,7 +355,7 @@ Readability.prototype = {
var origTitle = "";
try {
curTitle = origTitle = doc.title;
curTitle = origTitle = doc.title.trim();
// If they had an element with id "title" in their HTML
if (typeof curTitle !== "string")

Loading…
Cancel
Save