Skip to content
This repository has been archived by the owner on Jun 8, 2019. It is now read-only.

Commit

Permalink
Do not sanitize the main content area
Browse files Browse the repository at this point in the history
  • Loading branch information
sikachu committed Nov 9, 2011
1 parent 7192f3a commit 6c33c84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/readability.rb
Expand Up @@ -59,7 +59,7 @@ def content(remove_unlikely_candidates = :default)
best_candidate = select_best_candidate(candidates)
article = get_article(candidates, best_candidate)

cleaned_article = sanitize(article, candidates, options)
cleaned_article = article.to_html
if article.text.strip.length < options[:retry_length]
if @remove_unlikely_candidates
@remove_unlikely_candidates = false
Expand Down

0 comments on commit 6c33c84

Please sign in to comment.