Skip to content

Commit

Permalink
Call as ERB::Util.html_escape since is not the module is not included…
Browse files Browse the repository at this point in the history
… here
  • Loading branch information
spastorino committed Nov 2, 2010
1 parent 5cb1dad commit 2c8bff3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_view/helpers/capture_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def capture(*args)
value = nil
buffer = with_output_buffer { value = yield(*args) }
if string = buffer.presence || value and string.is_a?(String)
NonConcattingString.new(html_escape string)
NonConcattingString.new(ERB::Util.html_escape(string))
end
end

Expand Down

0 comments on commit 2c8bff3

Please sign in to comment.