lib/onebox/preview.rb in onebox-2.1.4 vs lib/onebox/preview.rb in onebox-2.1.5
- old
+ new
@@ -43,10 +43,10 @@
def process_html(html)
return "" unless html
if @options[:max_width]
- doc = Nokogiri::HTML::fragment(html)
+ doc = Nokogiri::HTML5::fragment(html)
if doc
doc.css('[width]').each do |e|
width = e['width'].to_i
if width > @options[:max_width]