Permalink
Browse files

Layout contents are html-safe

  • Loading branch information...
1 parent 157216b commit 19e6006636ecc071cc3b4ec3d339029626c06e72 @jeremy jeremy committed Apr 9, 2010
@@ -48,7 +48,7 @@ module Layouts
#
def _layout_for(name = nil, &block) #:nodoc:
if !block || name
- @_content_for[name || :layout]
+ @_content_for[name || :layout].html_safe
else
capture(&block)
end
@@ -7,7 +7,7 @@
</head>
<body>
-<%=raw yield %>
+<%= yield %>
</body>
</html>

0 comments on commit 19e6006

Please sign in to comment.