aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides
diff options
context:
space:
mode:
authorRyan Bigg <radarlistener@gmail.com>2010-01-16 23:23:54 +0530
committerPratik Naik <pratiknaik@gmail.com>2010-01-16 23:24:38 +0530
commit0fc6418e75626bbbd2a696bd3e354bae583d65ed (patch)
treee59a24b7c1fab4f7c7dd824e1e708de2ace7c261 /railties/guides
parent07e41a83616966fef848797c3474eb7704a62794 (diff)
downloadrails-0fc6418e75626bbbd2a696bd3e354bae583d65ed.tar.gz
rails-0fc6418e75626bbbd2a696bd3e354bae583d65ed.tar.bz2
rails-0fc6418e75626bbbd2a696bd3e354bae583d65ed.zip
Mark title and headers as html_safe! for guides [#3702 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Diffstat (limited to 'railties/guides')
-rw-r--r--railties/guides/rails_guides/generator.rb6
-rw-r--r--railties/guides/source/layout.html.erb2
2 files changed, 4 insertions, 4 deletions
diff --git a/railties/guides/rails_guides/generator.rb b/railties/guides/rails_guides/generator.rb
index 2a4714b13a..cebf6ae866 100644
--- a/railties/guides/rails_guides/generator.rb
+++ b/railties/guides/rails_guides/generator.rb
@@ -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
diff --git a/railties/guides/source/layout.html.erb b/railties/guides/source/layout.html.erb
index eb66366d07..7dfcf4a507 100644
--- a/railties/guides/source/layout.html.erb
+++ b/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>