actionpack-action_caching
actionpack-action_caching copied to clipboard
Ensure rendered html content gets allways marked as html_safe
Fixing https://github.com/rails/actionpack-action_caching/issues/64
So the problem is that read_fragment calls html_safe
on the content string but save_fragment doesnt do that. So on the first call the content string gets piped to the renderer as unsafe and then it gets falsely escaped.
nice fix! Working for me. Thanks @thedarkside!