Rails 6 marks arrays of translations as trusted safe by using the '_html' suffix

Before Rails 6, keys with the _html suffix in the language locale files are automatically marked as HTML safe. These HTML safe keys do not get escaped when used in the views.
Rails 6 marks arrays of translations as trusted safe by using the '_html' suffix #ruby #rubydeveloper #rubyonrails #arrays https://rubyonrails.ba/single/rails-6-marks-arrays-of-translations-as-trusted-safe-by-using-the-_html-suffix

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles