FIX: do not raise error if 'class' attribute is not found.
This commit is contained in:
parent
4afbcb9872
commit
5ff24b6891
|
@ -97,7 +97,7 @@ class ExcerptParser < Nokogiri::XML::SAX::Document
|
|||
|
||||
when "aside"
|
||||
attributes = Hash[*attributes.flatten]
|
||||
unless (@keep_onebox_source || @keep_onebox_body) && attributes['class'].include?('onebox')
|
||||
unless (@keep_onebox_source || @keep_onebox_body) && attributes['class']&.include?('onebox')
|
||||
@in_quote = true
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue