Would be nice to see the ``gsub`` and ``html_safe`` call extracted into a method.