Add support for lists to readability topic importing.

This commit is contained in:
Robin Ward 2014-01-09 15:49:38 -05:00
parent 852d110f35
commit af9b7bfee2

View File

@ -46,7 +46,7 @@ class TopicEmbed < ActiveRecord::Base
opts = opts || {}
doc = Readability::Document.new(open(url).read,
tags: %w[div p code pre h1 h2 h3 b em i strong a img],
tags: %w[div p code pre h1 h2 h3 b em i strong a img ul li ol],
attributes: %w[href src])
TopicEmbed.import(user, url, opts[:title] || doc.title, doc.content)