Hello,
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...
Hpricot::XChar::PREDEFINED_U.merge!({" " => 32})
as suggested in http://code.whytheluckystiff.net/hpricot/ticket/137#comment:4
I've put that line at the beginning of the controller where I'm using Hpricot, and the problem is that when I try to run that code I get the error...
uninitialized constant Hpricot::XChar
Any idea about why this is happenning? I'm using Rails 2.1.0
Thanks in advance.
xavi