well html() just gets the innerHTMLso your out of luck there there is actually a plugin for getting the actually container html I remember coming across it on the jquery plugin pages you can try finding it there
All i can say is its doesnt seem hard, but also not as easy as you think ^^