Maybe make_html should handle setting it?


On Mon, Apr 14, 2014 at 8:49 PM, Sam <notifications@github.com> wrote:

> In lib/readability.rb:
>
> > @@ -34,7 +36,10 @@ def initialize(input, options = {})
> >        @weight_classes = @options[:weight_classes]
> >        @clean_conditionally = @options[:clean_conditionally]
> >        @best_candidate_has_image = true
> > -      make_html
> > +      make_html(@options[:whitelist], @options[:blacklist])
> > +      if @options[:whitelist] || @options[:blacklist]
> > +        @input = @html.to_s
>
> we need to scrub @input <https://github.com/input>, otherwise when
> make_html is called later it has an unstrubbed input
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/cantino/ruby-readability/pull/70/files#r11619179>
> .
>