render_to_string stripping markup
I am using `render_to_string` within a JSON 'render' response. The `render_to_string` method seems to be striping my HTML, what am I doing wrong here?

Here's a sample:

    render :json => {:html => render_to_string(:partial => 'view', :locals => { data => @data} )}

The response is coming through without any markup on it.
render_to_string stripping markup
===

I am using `render_to_string` within a JSON 'render' response. The `render_to_string` method seems to be striping my HTML, what am I doing wrong here?

Here's a sample:

    render :json => {:html => render_to_string(:partial => 'view', :locals => { data => @data} )}

The response is coming through without any markup on it.