Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't incompatibly monkeypatch ERB.

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information...
commit e3f14d12cdad03a2294c8f7d4e170bbaecefe098 1 parent e53791f
@nex3 nex3 authored jeremy committed
Showing with 0 additions and 16 deletions.
  1. +0 −16 activesupport/lib/active_support/core_ext/string/output_safety.rb
View
16 activesupport/lib/active_support/core_ext/string/output_safety.rb
@@ -1,22 +1,6 @@
require 'erb'
class ERB
- undef :set_eoutvar
- def set_eoutvar(compiler, eoutvar = '_erbout')
- compiler.put_cmd = "#{eoutvar}.safe_concat"
- compiler.insert_cmd = "#{eoutvar}.safe_concat"
-
- cmd = []
- cmd.push "#{eoutvar} = ActiveSupport::SafeBuffer.new"
-
- compiler.pre_cmd = cmd
-
- cmd = []
- cmd.push(eoutvar)
-
- compiler.post_cmd = cmd
- end
-
module Util
HTML_ESCAPE = { '&' => '&amp;', '>' => '&gt;', '<' => '&lt;', '"' => '&quot;' }
JSON_ESCAPE = { '&' => '\u0026', '>' => '\u003E', '<' => '\u003C' }
Please sign in to comment.
Something went wrong with that request. Please try again.