I vaguely recall if you mark both strings (format and name with strong) as html_safe they should not be escaped again.