diff --git a/lib/cell/erb/template.rb b/lib/cell/erb/template.rb index 713664a..9bf6db3 100644 --- a/lib/cell/erb/template.rb +++ b/lib/cell/erb/template.rb @@ -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.