Skip to content

Commit

Permalink
Clarify HTML Safe Translations [ci-skip]
Browse files Browse the repository at this point in the history
I think it's confusing to say "Use them in views without escaping." We
use all keys in views without escaping - the escaping is done for us
automatically _unless_ we call html_safe or the key ends in _html.
  • Loading branch information
derekprior committed Nov 5, 2013
1 parent abe300a commit 0e41b0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/source/i18n.md
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ I18n.default_locale = :de

### Using Safe HTML Translations

Keys with a '_html' suffix and keys named 'html' are marked as HTML safe. Use them in views without escaping.
Keys with a '_html' suffix and keys named 'html' are marked as HTML safe. When you use them in views the HTML will not be escaped.

```yaml
# config/locales/en.yml
Expand Down

0 comments on commit 0e41b0a

Please sign in to comment.