Hpricot: Stop auto fixing HTML
- by Imran
Consider the following example (sample data):
doc = Hpricot("<a><table><tr><td>LOREM IPSUM</td></tr></table></a>")
it converts it to
<a></a><table><tr><td>LOREM IPSUM</td></tr></table>
What it actually do is, pull out the table from <a> tag.
I think Hpricot tries to repair the HTML. How can I stop Hpricot doing this?