From 1617f4e89b66297cd8f97a10c2bf02203b792871 Mon Sep 17 00:00:00 2001 From: Matthew Landauer Date: Wed, 20 Feb 2013 05:45:50 +1100 Subject: Mark html string in country message as html safe --- app/controllers/services_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/services_controller.rb') diff --git a/app/controllers/services_controller.rb b/app/controllers/services_controller.rb index 1db5348c7..a27e71264 100644 --- a/app/controllers/services_controller.rb +++ b/app/controllers/services_controller.rb @@ -15,7 +15,7 @@ class ServicesController < ApplicationController FastGettext.locale = FastGettext.best_locale_in(request.env['HTTP_ACCEPT_LANGUAGE']) if found_country && found_country[:country_name] && found_country[:url] && found_country[:name] text = _("Hello! You can make Freedom of Information requests within {{country_name}} at {{link_to_website}}", - :country_name => found_country[:country_name], :link_to_website => "#{found_country[:name]}") + :country_name => found_country[:country_name], :link_to_website => "#{found_country[:name]}".html_safe) else current_country = WorldFOIWebsites.by_code(iso_country_code)[:country_name] text = _("Hello! We have an important message for visitors outside {{country_name}}", :country_name => current_country) -- cgit v1.2.3