1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Call as ERB::Util.html_escape since is not the module is not included here

This commit is contained in:
Santiago Pastorino 2010-11-02 20:02:13 -02:00
parent bb9c58eb4a
commit 72d12d9455

View file

@ -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