Sha256: 6e5b99e194610bd78a2cc27bbb032c99c94dccf79068b18cfa85a70f6f74f0db
Contents?: true
Size: 1.03 KB
Versions: 2
Compression:
Stored size: 1.03 KB
Contents
require 'sinatra/base' class TestApp < Sinatra::Base get '/escaped_tag' do <<-HTML <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/htmll; charset=utf-8"/> <title>sample</title> </head> <body> <strong>just some text inside escaped tags<strong> </body> </html> HTML end get '/escaped_entity' do <<-HTML <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/htmll; charset=utf-8"/> <title>sample</title> </head> <body> Tom&Jerry </body> </html> HTML end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rack-escapee-0.1.1 | spec/fixtures/test_app.rb |
rack-escapee-0.1.0 | spec/fixtures/test_app.rb |