Skip to content

Commit 78857ba

Browse files
authored
Merge pull request #267 from pocke/erubi-escape_html
Mention Erubi in auto_escape_html FAQ
2 parents 5f047aa + 3f8ba27 commit 78857ba

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)