How to delete a tag with an attribute using Nokogiri?

Hi all,

I want to delete a specific tag from a webpage. Here is one example:

Since there are many div tags in this page, how can I just delete the
one with attribute id=“divPlayer” using Nokogiri?


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs