Mark title and headers as html_safe! for guides [#3702 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
This commit is contained in:
parent
07e41a8361
commit
0fc6418e75
|
@ -71,8 +71,8 @@ module RailsGuides
|
|||
|
||||
header = textile(header)
|
||||
|
||||
view.content_for(:page_title) { page_title }
|
||||
view.content_for(:header_section) { header }
|
||||
view.content_for(:page_title) { page_title.html_safe! }
|
||||
view.content_for(:header_section) { header.html_safe! }
|
||||
new_body
|
||||
end
|
||||
|
||||
|
@ -103,7 +103,7 @@ module RailsGuides
|
|||
index << '</ol>'
|
||||
index << '</div>'
|
||||
|
||||
view.content_for(:index_section) { index }
|
||||
view.content_for(:index_section) { index.html_safe! }
|
||||
|
||||
i.result
|
||||
end
|
||||
|
|
|
@ -87,7 +87,7 @@
|
|||
<div id="container">
|
||||
<div class="wrapper">
|
||||
<div id="mainCol">
|
||||
<%= yield %>
|
||||
<%= yield.html_safe! %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue