# Hpricot question

**URL:** <https://rubytalk.org/t/hpricot-question/44143>\
**Category:** ruby-talk\
**Created:** [30 January 2008 20:26 UTC](https://rubytalk.org/t/hpricot-question/44143 "2008-01-30T20:26:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nanda\_Yadav](https://avatars.discourse-cdn.com/v4/letter/n/bb73d2/32.png) [@Nanda\_Yadav](https://rubytalk.org/u/Nanda_Yadav)\
**Post date:** [30 January 2008 20:26 UTC](https://rubytalk.org/t/hpricot-question/44143/1 "2008-01-30T20:26:14Z")

</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  
\<title\> This title is formatted wrong \<adsfadsftitle\>

puts [doc.at](http://doc.at)("title").to\_html shows  
\<title\>This title is formatted wrong \</title\>

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!

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
