Is there a way in Nokogiri to select all elements that do not match the selector. In jQuery, I would use:
:not(*[@class='someclass'])
However, the following code gives me xpath syntax error
dom = Nokogiri::HTML(@file) dom.css(":not(*[@class='someclass'])")
Jamie source share