diff options
author | Derek Prior <derekprior@gmail.com> | 2013-11-05 10:33:06 -0500 |
---|---|---|
committer | Derek Prior <derekprior@gmail.com> | 2013-11-05 11:16:04 -0500 |
commit | 0e41b0a87a10205d2b85406ae33e116a5e4cbab3 (patch) | |
tree | 3663119d1047de59038479acbe5d97a9efd1bb2d /guides | |
parent | abe300a424b422e5dffe5852dac9577bd2742b06 (diff) | |
download | rails-0e41b0a87a10205d2b85406ae33e116a5e4cbab3.tar.gz rails-0e41b0a87a10205d2b85406ae33e116a5e4cbab3.tar.bz2 rails-0e41b0a87a10205d2b85406ae33e116a5e4cbab3.zip |
Clarify HTML Safe Translations [ci-skip]
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.
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/i18n.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/i18n.md b/guides/source/i18n.md index 33daa79133..b5c1dc90fa 100644 --- a/guides/source/i18n.md +++ b/guides/source/i18n.md @@ -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 |