Permalink
Browse files

Fix html escaping of ´required´ string

  • Loading branch information...
1 parent 5a8a859 commit f07059ce9947c4b76fb1540f6ce960974e89efd7 @yabawock yabawock committed Apr 20, 2010
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

0 comments on commit f07059c

Please sign in to comment.