Hpricot - malformed HTML question


I have some html links that are poorly formed. Note the capital “A”.

link here

This code will find all of the correctly formed links with the lower
case “a”.

search_result.search("//a[@href*=’/link_here/’]") do |link|

How can I get the links that are designated with a capital “A”?


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