title: Rspec testing for html entities in page content
body: <p>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 directly, so I tried this: <code>page.should have_content("Reports &amp;raquo; Aging Reports")</code></p>
  
  <p>This fails the test with the message:</p>
  
  <p><code>expected there to be content "Reports &amp;raquo; Aging Reports" in "\n        Reports » Aging Reports\n</code></p>
  
  <p>I've tried things like <code>.html_safe</code> with no success. Is there a way to test for text containing html entities?</p>
  
  <p>Edit:</p>
  
  <p>Here's the relevant area of the html source:</p>
  
  <p><code>&lt;a href="/reports"&gt;Reports&lt;/a&gt; &amp;raquo; &lt;a href="/aging_reports"&gt;Aging Reports&lt;/a&gt;</code></p>