Stack trace is not HTML escaped in browser

When a test fails, the stack trace is not HTML escaped when displayed in the browser, which means that if you are testing the equality of two strings that contain HTML elements, you will not be able to see the HTML elements.  This patch fixes this issue.