From bb8677b7f654cebabaff8c9e14afd55e9dbb708f Mon Sep 17 00:00:00 2001 From: Marwin Hochfelsner <50826859+hlfan@users.noreply.github.com> Date: Thu, 19 Mar 2026 06:43:04 +0000 Subject: [PATCH] Use i18n _html flag --- .herb.yml | 2 -- app/views/webgl_error_panes/show.html.erb | 2 +- config/locales/en.yml | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.herb.yml b/.herb.yml index b82a956d8..1666be3eb 100644 --- a/.herb.yml +++ b/.herb.yml @@ -10,8 +10,6 @@ linter: enabled: false erb-no-interpolated-class-names: enabled: false - erb-no-unsafe-raw: - enabled: false html-anchor-require-href: enabled: false html-no-space-in-tag: diff --git a/app/views/webgl_error_panes/show.html.erb b/app/views/webgl_error_panes/show.html.erb index 694693744..b0de97919 100644 --- a/app/views/webgl_error_panes/show.html.erb +++ b/app/views/webgl_error_panes/show.html.erb @@ -3,7 +3,7 @@ <%= t(".compact_message") %>

- <%= t(".description", :your_browser_does_not_support_webgl => content_tag(:b, t(".your_browser_does_not_support_webgl"))).html_safe %> + <%= t(".description_html", :your_browser_does_not_support_webgl => tag.b(t(".your_browser_does_not_support_webgl"))) %>

<%= link_to t(".read_more_about_webgl_url"), :target => "_blank", :rel => "noopener", :class => "btn btn-link text-info-emphasis fw-bold" do %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 9e64d4254..79a8b7a3f 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2934,7 +2934,7 @@ en: webgl_error_panes: show: compact_message: WebGL is required for this map. - description: "We are sorry, but it seems that %{your_browser_does_not_support_webgl}, a technology for rendering 3D graphics on the web." + description_html: "We are sorry, but it seems that %{your_browser_does_not_support_webgl}, a technology for rendering 3D graphics on the web." your_browser_does_not_support_webgl: your browser does not support WebGL webgl_is_required_for_this_map: WebGL is required to display this map. read_more_about_webgl: "Read more" -- 2.39.5