Enable Style/WordArray

This commit is contained in:
gregoirenovel 2018-10-01 13:55:12 +02:00
parent d1439f8a52
commit 6eeba14885
19 changed files with 23 additions and 22 deletions

View file

@ -2,6 +2,6 @@ module StringToHtmlHelper
def string_to_html(str)
html_formatted = simple_format(str)
with_links = html_formatted.gsub(URI.regexp, '<a target="_blank" href="\0">\0</a>')
sanitize(with_links, attributes: %w(href target))
sanitize(with_links, attributes: ['href', 'target'])
end
end