Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Patch for plataformatec/show_for#1 ShowFor.default_collection_proc is being html escaped in Rails 3.0.3 #19

Closed
wants to merge 1 commit into from

2 participants

@aptinio

No description provided.

@carlosantoniodasilva
Collaborator

Applied, thanks!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 19, 2010
  1. @aptinio

    fixes plataformated/show_for#1

    aptinio authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/show_for.rb
View
2  lib/show_for.rb
@@ -25,7 +25,7 @@ module ShowFor
@@collection_tag = :ul
mattr_accessor :default_collection_proc
- @@default_collection_proc = lambda { |value| "<li>#{value}</li>" }
+ @@default_collection_proc = lambda { |value| "<li>#{ERB::Util.html_escape(value)}</li>".html_safe }
mattr_accessor :i18n_format
@@i18n_format = :default
Something went wrong with that request. Please try again.