Over a million developers have joined DZone.

Deleting An Element From Nokogiri

·
In this example all img elements are deleted from the Nokogiri HTML document.

doc2.xpath('//img').each {|x| x.remove}

Resources:
 - inserting and deleting nokogiri XML nodes and elements - Stack Overflow [stackoverflow.com]
Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}