hpricot:Hpricot::Elements#remove
まんま
>> require "hpricot" => true >> doc = Hpricot("<html>Remove this: <b>here</b></html>") => #<Hpricot::Doc {elem <html> "Remove this: " {elem <b> "here" </b>} </html>}> >> doc.search("b").remove => #<Hpricot::Elements[{elem <b> "here" </b>}]> >> doc.to_html => "<html>Remove this: </html>"