DEV: Remove useless code (#10130)
protection is not needed and can easily be bypassed with empty divs anyway.
This commit is contained in:
parent
fa8bb5f464
commit
c299d02287
|
@ -115,13 +115,6 @@ module Oneboxer
|
|||
end
|
||||
end
|
||||
|
||||
# strip empty <p> elements
|
||||
doc.css("p").each do |p|
|
||||
if p.children.empty? && doc.children.count > 1
|
||||
p.remove
|
||||
end
|
||||
end
|
||||
|
||||
Result.new(doc, changed)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue