How I can check html content on the page with capybara?

page.should have_text('this is <b>bold</b> "text"')

output:

Failure/Error: page.should have_text('this is <b>bold</b> "text"')
  expected there to be this is <b>bold</b> \"text\" in "....this is bold \"text\"....."
Edit
Report