mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
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.
This commit is contained in:
parent
abe300a424
commit
0e41b0a87a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue