Permalink
Browse files

Mark title and headers as html_safe! for guides [#3702 state:resolved]

Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
  • Loading branch information...
1 parent 07e41a8 commit 0fc6418e75626bbbd2a696bd3e354bae583d65ed @radar radar committed with lifo Jan 16, 2010
Showing with 4 additions and 4 deletions.
  1. +3 −3 railties/guides/rails_guides/generator.rb
  2. +1 −1 railties/guides/source/layout.html.erb
View
6 railties/guides/rails_guides/generator.rb
@@ -71,8 +71,8 @@ def set_header_section(body, view)
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 @@ def set_index(body, view)
index << '</ol>'
index << '</div>'
- view.content_for(:index_section) { index }
+ view.content_for(:index_section) { index.html_safe! }
i.result
end
View
2 railties/guides/source/layout.html.erb
@@ -87,7 +87,7 @@
<div id="container">
<div class="wrapper">
<div id="mainCol">
- <%= yield %>
+ <%= yield.html_safe! %>
</div>
</div>
</div>

0 comments on commit 0fc6418

Please sign in to comment.