You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the following code will add scrubbing behavior:
doc = Nokogiri::HTML HTML
doc.extend Loofah::ScrubBehavior::Node
but that doesn't include #text or the node and node set decorators.
So, I'd suggest that we allow Loofah initialize methods to receive a Nokogiri document / fragment and do the extension there. Then we should check that we're not relying on the typeiness of the Loofah document / fragment.
(And, actually, can we then eliminate the classes entirely, and just use extended Nokogiri docs everywhere?)
The text was updated successfully, but these errors were encountered:
Currently, the following code will add scrubbing behavior:
but that doesn't include #text or the node and node set decorators.
So, I'd suggest that we allow Loofah initialize methods to receive a Nokogiri document / fragment and do the extension there. Then we should check that we're not relying on the typeiness of the Loofah document / fragment.
(And, actually, can we then eliminate the classes entirely, and just use extended Nokogiri docs everywhere?)
The text was updated successfully, but these errors were encountered: