diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index a40a5fb..63f80ea 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1,6 +1,6 @@ module ApplicationHelper def title(page_title) - content_for :title, page_title.to_s + content_for :title, strip_tags(page_title.to_s) page_title end end diff --git a/app/views/supporters/_form.slim b/app/views/supporters/_form.slim index c9162c2..901e626 100644 --- a/app/views/supporters/_form.slim +++ b/app/views/supporters/_form.slim @@ -1,4 +1,4 @@ -h1 = title t('.title') +h1 = title t('.title_html') = simple_form_for @supporter do |f| = f.input :first_name = f.input :last_name diff --git a/config/locales/de.yml b/config/locales/de.yml index e8e45f4..b5edd68 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -10,7 +10,7 @@ de: supporters: form: - title: Ja, ich will helfen Cannabis in der Schweiz endlich zu legalisieren + title_html: Ja, ich will Cannabis in der Schweiz legalisieren submit: Unterstützung zusichern create: timeout: Ihre Eingabe war zu schnell.