Why does the razor helper ObjectInfo.Print() wreak havoc on my page?

Why does the razor helper ObjectInfo.Print() wreak havoc on my page?

I added a temporary "Debug" tab to my page, with the id of "tabDebug", and added this jQuery:

  1.     $("#tabDebug").html(@ObjectInfo.Print(this));

but it causes my page to go all pear shaped - almost literally: everything tries to display in one tab, instead of each part remaining in its proper tab. What syntactical crime am I committing, and what is the right way to access razor objects from within jQuery?