Hello,

How can I modify a tag attribute using Hpricot ?

I.e.

url = 'http://mysite.com/mypage.html'
doc = Hpricot(open(url))

I want to replace from all <img> tags the property src = "imagexxx.jpg"
with src = "imageyyy.jpg"

Thanks

-- 
Posted via http://www.ruby-forum.com/.