File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
actionview/lib/action_view/helpers Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,11 @@ def raw(stringish)
24
24
# the supplied separator, are HTML escaped unless they are HTML
25
25
# safe, and the returned string is marked as HTML safe.
26
26
#
27
- # safe_join([raw("<p> foo</p> "), "<p>bar</p>"], "<br / >")
28
- # # => "<p>foo</p><br / ><p>bar</p>"
27
+ # safe_join([tag.p(" foo"), "<p>bar</p>"], "<br>")
28
+ # # => "<p>foo</p><br><p>bar</p>"
29
29
#
30
- # safe_join([raw("<p> foo</p> "), raw("<p> bar</p> ")], raw("<br />") )
31
- # # => "<p>foo</p><br / ><p>bar</p>"
30
+ # safe_join([tag.p(" foo"), tag.p(" bar")], tag.br )
31
+ # # => "<p>foo</p><br><p>bar</p>"
32
32
#
33
33
def safe_join ( array , sep = $,)
34
34
sep = ERB ::Util . unwrapped_html_escape ( sep )
You can’t perform that action at this time.
0 commit comments