mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user