class ActiveSupport::SafeBuffer

def [](*args)

def [](*args)
  if html_safe?
    new_string = super
    return unless new_string
    string_into_safe_buffer(new_string, true)
  else
    to_str[*args]
  end
end