diff options
author | Ryan Bigg <radarlistener@gmail.com> | 2010-01-16 23:23:54 +0530 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2010-01-16 23:24:38 +0530 |
commit | 0fc6418e75626bbbd2a696bd3e354bae583d65ed (patch) | |
tree | e59a24b7c1fab4f7c7dd824e1e708de2ace7c261 /railties/guides/rails_guides | |
parent | 07e41a83616966fef848797c3474eb7704a62794 (diff) | |
download | rails-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/rails_guides')
-rw-r--r-- | railties/guides/rails_guides/generator.rb | 6 |
1 files changed, 3 insertions, 3 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 |