Skip to content

Commit 3f8ba27

Browse files
committed
Mention Erubi in auto_escape_html FAQ
1 parent 8a8c766 commit 3f8ba27

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

faq.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,9 @@ for the tip!
245245
How do I automatically escape HTML? {#auto_escape_html}
246246
---------------------
247247

248-
Require [Erubis](https://rubygems.org/gems/erubis) and set `escape_html` to `true`:
248+
Require [Erubis](https://rubygems.org/gems/erubis) or [Erubi](https://rubygems.org/gems/erubi) and set `escape_html` to `true`:
249249

250-
require 'erubis'
250+
require 'erubis' # or 'erubi'
251251
set :erb, :escape_html => true
252252

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

0 commit comments

Comments
 (0)