Forum: Ruby on Rails Hpricot - malformed HTML question

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
666bc1afacbfb59f8e511faad9f31e64?d=identicon&s=25 Cs Webgrl (cswebgrl)
on 2008-11-04 01:37
Hi.

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

<A href="link">link here</A>


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"?


Thanks!
This topic is locked and can not be replied to.