Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix html escaping of ´required´ string

  • Loading branch information...
commit f07059ce9947c4b76fb1540f6ce960974e89efd7 1 parent 5a8a859
@yabawock yabawock authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/formtastic.rb
View
2  lib/formtastic.rb
@@ -10,7 +10,7 @@ class SemanticFormBuilder < ActionView::Helpers::FormBuilder
@@default_text_area_height = 20
@@all_fields_required_by_default = true
@@include_blank_for_select_by_default = true
- @@required_string = proc { %{<abbr title="#{::Formtastic::I18n.t(:required)}">*</abbr>} }
+ @@required_string = proc { ::Formtastic::Util.html_safe(%{<abbr title="#{::Formtastic::I18n.t(:required)}">*</abbr>}) }
@@optional_string = ''
@@inline_errors = :sentence
@@label_str_method = :humanize
Please sign in to comment.
Something went wrong with that request. Please try again.