aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/layouts_and_rendering.md
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2016-01-19 15:14:22 +0530
committerVipul A M <vipulnsward@gmail.com>2016-01-19 15:15:25 +0530
commit0764e678635168588a8ccb838c61011e906f4a4e (patch)
treec31f0c880bbf519764c6cca6e72d1266fe476f47 /guides/source/layouts_and_rendering.md
parentbb4c63c70368c6f0189bf1f380ef66c07d7de40d (diff)
downloadrails-0764e678635168588a8ccb838c61011e906f4a4e.tar.gz
rails-0764e678635168588a8ccb838c61011e906f4a4e.tar.bz2
rails-0764e678635168588a8ccb838c61011e906f4a4e.zip
Make text about render :html option clearer to state, text will get escaped if not marked as safe by using html_safe
Fixes #22648 [ci skip]
Diffstat (limited to 'guides/source/layouts_and_rendering.md')
-rw-r--r--guides/source/layouts_and_rendering.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/layouts_and_rendering.md b/guides/source/layouts_and_rendering.md
index 9b7f916b9e..d55e1007ee 100644
--- a/guides/source/layouts_and_rendering.md
+++ b/guides/source/layouts_and_rendering.md
@@ -238,7 +238,7 @@ TIP: This is useful when you're rendering a small snippet of HTML code.
However, you might want to consider moving it to a template file if the markup
is complex.
-NOTE: This option will escape HTML entities if the string is not HTML safe.
+NOTE: When using `html:` option, HTML entities will be escaped if the string is not marked as HTML safe by using `html_safe` method.
#### Rendering JSON