Tagged Questions
3
votes
2answers
5k views
Ruby gem install and “No such file to load”
I'm scripting with Ruby 1.9.2dev in Backtrack 5 but I'm having some problems when try to parse html entities with the library "htmlentities".
I cannot load the library although I have installed it ...
11
votes
2answers
4k views
how to make Nokogiri not to convert to space
i fetch one html fragment like
"<li>市 场 价"
which contains " ", but after calling to_s of Nokogiri NodeSet, it becomes
"<li>市 场 价"
, i want to keep the ...
5
votes
4answers
3k views
Rspec testing for html entities in page content
I'm writing a request spec and would like to test for the presence of the string "Reports » Aging Reports". I get an error (invalid multibyte char) if I put in the character in my matcher expression ...
0
votes
1answer
713 views
Ruby json gem is encoding html entities
I make a hash called timeOffsets in my code
@timeOffsets = Hash.new
total=0
@sections.each do |i|
@timeOffsets[i.shortcode] = total
total+=i.length
end
And I render it in Javascript using ...