title: Ruby json gem is encoding html entities
body: <p>I make a hash called timeOffsets in my code</p>
  
  <pre><code>@timeOffsets = Hash.new
  total=0
  @sections.each do |i|
    @timeOffsets[i.shortcode] = total
    total+=i.length
  end
  </code></pre>
  
  <p>And I render it in Javascript using to_json, :</p>
  
  <pre><code>timeOffsets=&lt;%=@timeOffsets.to_json%&gt;;
  </code></pre>
  
  <p>but I get it with the HTML entities encoded:</p>
  
  <pre><code>timeOffsets={&amp;quot;Introduction_to_Lists&amp;quot;:0,&amp;quot;Removing_elements&amp;quot;:693,&amp;quot;Joining__join_&amp;quot;:1490};
  </code></pre>
  
  <p>How do I stop it from encoding the HTML entities?</p>