Skip to content

Commit

Permalink
Fix escaping of model-backed form with fields_for
Browse files Browse the repository at this point in the history
in response to:
#2
  • Loading branch information
johnlane committed Feb 3, 2016
1 parent eb6b5a6 commit adcab90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cell/erb/template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def template_options_for(options)
# this is capture copied from AV:::CaptureHelper without doing escaping.
def capture(*args)
value = nil
buffer = with_output_buffer { value = yield(*args) }
buffer = with_output_buffer { value = yield(*args).html_safe }

return buffer.to_s if buffer.size > 0
value # this applies for "Beachparty" string-only statements.
Expand Down

0 comments on commit adcab90

Please sign in to comment.