Getting html from object

Getting html from object

I'm using the JQuery Template plug-in found here : http://github.com/jquery/jquery-tmpl

When I run my code as such:

  1.  $("#resulttmpl").render(result).appendTo("#resultdata");
Things work fine.  However in my situation I need to get the actual HTML rendered into a variable.  I've tried:

  1.  $("#resulttmpl").render(result).html();
  2.  $("#resulttmpl").render(result).value();
  3.  $("#resulttmpl").render(result).text();
However none seem to be doing what I need (bringing back the full html).  I've tried to debug what object is returned from .render() but I'm stuck.  It looks like some sort of array.  I've attached a picture from FireBug.



Any thoughts on what I'm doing wrong?

Thanks.