How to capture not eval'ed ERB

Hello

I need to capture a piece of erb by helper, modify it slighlty and
render it back. Really simplified version below:

def call_tag(tagname, *attrs, &block)
content = capture(&block)
concat render(:inline => process_content(content) :layout =>
false)
end

However if content contains any escaped js, it will be escaped again
and left not working anymore. Is there ANY way to get ERB source and
to already compiled one (through capture helper) ?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs