I’m using Hpricot in a Rails app. I’m trying to modify how it parses
non-breaking space entities ( ) so that they are converted into
spaces when using Hpricot’s inner_text (instead of being converted to
the corresponding unicode code point). To do this, I am trying this…
I don’t know what could be causing that error but my suggestion would
be that, if you can’t fix it, just modify the resulting string with
gsub. That’s the best I can come up with.