mirror of https://github.com/rails/rails
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]
This commit is contained in:
parent
bb4c63c703
commit
0764e67863
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue