peterc/pismo — pull request #14 by dparis (2012-03-01 00:23:15+00:00)
Title: Content encoding fix

There was a straightforward bug in the way the reader/base class handles the raw HTML content. The existing unicode conversion code was being called after the initial call to Pismo::Document.clean_html, which was causing the gsub! calls in clean_html to choke on some bad html. I just moved the call order around a little and wrote some additional logic to handle another corner case that cropped up.