From 0e41b0a87a10205d2b85406ae33e116a5e4cbab3 Mon Sep 17 00:00:00 2001 From: Derek Prior Date: Tue, 5 Nov 2013 10:33:06 -0500 Subject: 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. --- guides/source/i18n.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3