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:
Ryan Bigg 2010-01-16 23:23:54 +05:30 committed by Pratik Naik
parent 07e41a8361
commit 0fc6418e75
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -87,7 +87,7 @@
<div id="container">
<div class="wrapper">
<div id="mainCol">
<%= yield %>
<%= yield.html_safe! %>
</div>
</div>
</div>