Fix XSS issue in test results view

Added htmlEncoding to test result output in browser runner UI. Fixes #260.