Skip to content

Commit 698e016

Browse files
committed
Fix rails#42 html escaping
1 parent 985767a commit 698e016

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/action_controller/caching/actions.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def render_to_string(controller, body)
177177
end
178178
else
179179
def render_to_string(controller, body)
180-
controller.render_to_string(html: body, layout: true)
180+
controller.render_to_string(html: body.html_safe, layout: true)
181181
end
182182
end
183183

0 commit comments

Comments
 (0)