mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FEATURE: Nokogumbo (#9577)
* FEATURE: Nokogumbo Use Nokogumbo HTML parser.
This commit is contained in:
parent
b8b1cbbfb9
commit
9bff0882c3
50 changed files with 165 additions and 179 deletions
|
@ -376,7 +376,7 @@ class ImportScripts::IPBoard3 < ImportScripts::Base
|
|||
|
||||
raw.gsub!(/<(.+)> <\/\1>/, "\n\n")
|
||||
|
||||
doc = Nokogiri::HTML.fragment(raw)
|
||||
doc = Nokogiri::HTML5.fragment(raw)
|
||||
|
||||
doc.css("blockquote.ipsBlockquote").each do |bq|
|
||||
post_id = post_id_from_imported_post_id(bq["data-cid"])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue