Clean up HTML for the result detail.