diff --git a/app/helpers/form_helper.rb b/app/helpers/form_helper.rb index b10a2b0..078fc7f 100644 --- a/app/helpers/form_helper.rb +++ b/app/helpers/form_helper.rb @@ -6,7 +6,7 @@ module FormHelper content_tag(:div, :class => 'error-messages') do body = content_tag(:h2, 'Dang. The following errors are keeping this from being a success.') body += content_tag(:ul) do - document.errors.full_messages.inject('') {|errs, msg| errs += content_tag(:li, msg) } + document.errors.full_messages.inject('') {|errs, msg| errs += content_tag(:li, h(msg)) }.html_safe end end end -- libgit2 0.21.2