render_to_string in views

I have a strong use case for render_to_string in views.

This is in the context of a facebook app, but I can imagine a lot of scenarios where this might occur:

Consider:

<fb:request-form content="<%= h render_to_string :partial => 'invite_text' %>">

The invite text is full of HTML that needs to have entities encoded so it can be stored in an attribute.

It seems to me this ought to be supported out of the box, but what do people think. Plugin?

I just realized I can do:

helper_method :render_to_string

Which is a fairly low pain threshold, but I still think it could just be default behavior.