# Hpricot question

**URL:** <https://www.ruby-forum.com/t/hpricot-question/127614>\
**Category:** Ruby\
**Created:** [January 30, 2008, 9:26pm UTC](https://www.ruby-forum.com/t/hpricot-question/127614 "2008-01-30T21:26:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![levelheaded](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/4af34b/32.png) [@levelheaded](https://www.ruby-forum.com/u/levelheaded)\
**Post date:** [January 30, 2008, 9:26pm UTC](https://www.ruby-forum.com/t/hpricot-question/127614/1 "2008-01-30T21:26:19Z")

</div>

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!
