From c3fc8219a2fc0e6c9e8d656889363e3799d2861d Mon Sep 17 00:00:00 2001 From: Brendon Murphy Date: Sun, 10 Mar 2013 23:27:03 -0700 Subject: [PATCH] Fix the erubis auto escape faq bit. --- faq.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/faq.markdown b/faq.markdown index 2c5e6719..3d6e5780 100644 --- a/faq.markdown +++ b/faq.markdown @@ -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.