added a html_safe to prevent xml escaping