added support for html_safe