From 2c590168885afa9c5585135114eba57bb12ee46f Mon Sep 17 00:00:00 2001 From: umbrae Date: Sat, 7 Mar 2009 14:12:40 +0000 Subject: Missed the global operator on stripping fonts git-svn-id: http://arc90labs-readability.googlecode.com/svn/trunk@10 d4e419ec-0920-11de-bbfd-a7c1bc4c261e --- js/readability-0.1.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js') diff --git a/js/readability-0.1.js b/js/readability-0.1.js index d0e9a56..9397687 100755 --- a/js/readability-0.1.js +++ b/js/readability-0.1.js @@ -47,7 +47,7 @@ function grabArticle() { // Replace all doubled-up
tags with

tags, and remove fonts. var pattern = new RegExp ("
[ \r\n\s]*
", "g"); - document.body.innerHTML = document.body.innerHTML.replace(pattern, "

").replace(/<\/?font[^>]*>/, ''); + document.body.innerHTML = document.body.innerHTML.replace(pattern, "

").replace(/<\/?font[^>]*>/g, ''); // Grab the title from the tag and inject it as the title. articleTitle.innerHTML = document.title; -- cgit v1.2.3