Is there a Ruby library that does HTML entity parsing?

#This can also be done using File.split / dirname / basename:

···

Ilmari Heikkinen [mailto:kig@misfiring.net] wrote:

#
#File.dirname "http://foo.com/bar/stuff.html"
##=> "http://foo.com/bar"
#
#File.basename "http://foo.com/bar/stuff.html"
##=> "stuff.html"
#
#File.split "http://foo.com/bar/stuff.html"
##=> ["http://foo.com/bar", "stuff.html"]
#
#File.join( File.dirname("http://foo.com/bar/doc.html"),
#"relative_link.html" )
## => "http://foo.com/bar/relative_link.html"

cool pols, there.
thanks for the tip.

#
#Though that probably breaks on Windows since it has backslashes for
#directory separators.

i'm happy to tell you that it does not. surprise :slight_smile:

kind regards -botp

#
#Cheers,
#Ilmari Heikkinen
#
#