Properly escape content for HTML output

Current reporter does not escape HTML special characters in templates which results in may result in broken HTML markup. This change fixes the issue.