From 72d12d94559f7c124fa2ec88eb668ad2948c02f4 Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Tue, 2 Nov 2010 20:02:13 -0200 Subject: [PATCH] Call as ERB::Util.html_escape since is not the module is not included here --- actionpack/lib/action_view/helpers/capture_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actionpack/lib/action_view/helpers/capture_helper.rb b/actionpack/lib/action_view/helpers/capture_helper.rb index 2c805c8ecf..c88bd1efd5 100644 --- a/actionpack/lib/action_view/helpers/capture_helper.rb +++ b/actionpack/lib/action_view/helpers/capture_helper.rb @@ -39,7 +39,7 @@ module ActionView value = nil buffer = with_output_buffer { value = yield(*args) } if string = buffer.presence || value and string.is_a?(String) - html_escape string + ERB::Util.html_escape string end end