justinfrench-formtastic 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/formtastic.rb +2 -2
- metadata +1 -1
data/lib/formtastic.rb
CHANGED
@@ -751,7 +751,7 @@ module Formtastic #:nodoc:
|
|
751
751
|
# Creates an error sentence by calling to_sentence on the errors array.
|
752
752
|
#
|
753
753
|
def error_sentence(errors) #:nodoc:
|
754
|
-
template.content_tag(:p, errors.to_sentence, :class => 'inline-errors')
|
754
|
+
template.content_tag(:p, errors.to_sentence.untaint, :class => 'inline-errors')
|
755
755
|
end
|
756
756
|
|
757
757
|
# Creates an error li list.
|
@@ -759,7 +759,7 @@ module Formtastic #:nodoc:
|
|
759
759
|
def error_list(errors) #:nodoc:
|
760
760
|
list_elements = []
|
761
761
|
errors.each do |error|
|
762
|
-
list_elements << template.content_tag(:li, error)
|
762
|
+
list_elements << template.content_tag(:li, error.untaint)
|
763
763
|
end
|
764
764
|
template.content_tag(:ul, list_elements.join("\n"), :class => 'errors')
|
765
765
|
end
|