```ruby
require "#{File.dirname(__FILE__)}/abstract_note"

module Footnotes
  module Notes
    class EnvNote < AbstractNote
      def initialize(controller)
        @env = controller.request.env.dup
      end

      def content
        # Replace HTTP_COOKIE for a link
        @env['HTTP_COOKIE'] = '<a href="#" style="color:#009" onclick="Footnotes.hideAllAndToggle(\'cookies_debug_info\');return false;">See cookies on its tab</a>'

        # Create the env table
        mount_table(@env.to_a.sort.unshift([:key, :value]), :summary => "Debug information for #{title}")
      end
    end
  end
end
```

Stop the unescaped env madness!
user
```ruby
require "#{File.dirname(__FILE__)}/abstract_note"

module Footnotes
  module Notes
    class EnvNote < AbstractNote
      def initialize(controller)
        @env = controller.request.env.dup
      end

      def content
        env_data = @env.to_a.sort.unshift([:key, :value]).map do |k,v|
          case k
          when 'HTTP_COOKIE'
            # Replace HTTP_COOKIE for a link
            [k, '<a href="#" style="color:#009" onclick="Footnotes.hideAllAndToggle(\'cookies_debug_info\');return false;">See cookies on its tab</a>']
          else
            [k, escape(v.to_s)]
          end
        end

        # Create the env table
        mount_table(env_data)
      end
    end
  end
end
```
assistant