I'm not really happy with this, but can you use #raw instead of #html_safe here?