Skip to content

Commit

Permalink
Merge pull request sinatra#101 from bemurphy/fix_erb_faq
Browse files Browse the repository at this point in the history
Fix the erubis auto escape faq bit.
  • Loading branch information
rkh committed Mar 11, 2013
2 parents 6fafa48 + c3fc821 commit 635536e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions faq.markdown
Expand Up @@ -267,12 +267,12 @@ How do I automatically escape HTML? {#auto_escape_html}
Require [Erubis](http://rubygems.org/gems/erubis) and set `escape_html` to `true`:

require 'erubis'
set :erubis, :escape_html => true
set :erb, :escape_html => true

Then, any templates rendered with Erubis will be automatically escaped:

get '/' do
erubis :index
erb :index
end

Read more on the [Tilt Google Group](https://groups.google.com/forum/#!topic/tiltrb/PPm-sMz6Swc) and see [this example app](http://flowcoder.com/177) for details.
Expand Down

0 comments on commit 635536e

Please sign in to comment.