mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix HTML escaping in the guides
render :html escapes the argument if not provided as html safe.
This commit is contained in:
parent
0e7dfbe9a2
commit
8b3ed2b68a
2 changed files with 2 additions and 2 deletions
|
@ -158,7 +158,7 @@ module RailsGuides
|
|||
@view.content_for(:header_section) { @header }
|
||||
@view.content_for(:page_title) { @title }
|
||||
@view.content_for(:index_section) { @index }
|
||||
@view.render(layout: @layout, html: @body)
|
||||
@view.render(layout: @layout, html: @body.html_safe)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -88,7 +88,7 @@
|
|||
<div id="container">
|
||||
<div class="wrapper">
|
||||
<div id="mainCol">
|
||||
<%= yield.html_safe %>
|
||||
<%= yield %>
|
||||
|
||||
<h3>Feedback</h3>
|
||||
<p>
|
||||
|
|
Loading…
Reference in a new issue