If I have a view that is rendered with the following element:
View
<div id="content">
    <!-- More HTML -->
</div>
In my controller, is there such a method where I could retrieve the HTML string of a specific element using its id? For example, it might look something like:
def myview
    contentString = get_html_element_string("content")
    ...
end
where contentString would contain the value <div id="content"> <!-- More HTML --> </div> as a string.
I understand you can fetch the HTML of the whole rendered page using render_to_string, but I'd rather not parse through that.
 
     
    