Added some html_safe calls in order not to escape HTML.