]> git.openstreetmap.org Git - rails.git/commit
Avoid various uses of html_safe
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 21 Oct 2020 12:12:14 +0000 (14:12 +0200)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 21 Oct 2020 13:43:14 +0000 (15:43 +0200)
commit2559226be3baa2007a37689867bc945c3a6c9fe0
treeec0fedd3e3d0129339e7db344a5c546bc66ae9ed
parentbb2ffab9ec0ce6ff4c2ee69ddfa57e4f75963685
Avoid various uses of html_safe

We can avoid using `html_safe` in various circumstances, through alternative approaches like i18n keys ending in `_html` or using `safe_join` to avoid converting via unsafe string types.

The `_html` keys approach only work for ActionView helper version of `t`, not the base `I18n.t` method.
.rubocop_todo.yml
app/controllers/users_controller.rb
app/helpers/note_helper.rb
app/helpers/open_graph_helper.rb
app/views/browse/changeset.html.erb
config/locales/en.yml