Hpricot question

when I parse html file and capture the elements, hpricot automatically
fixes the issues and shows the results.

so if html source code has

This title is formatted wrong

puts doc.at(“title”).to_html shows

This title is formatted wrong

What I want to do is capture the actual text and tags as they are, is
there any method in hpricot that does that or is there another parser i
can use for this purpose.

Thanks a bunch!

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