I want to insert a large chunk of html into a pre-existing If quotes are breaking your code, try this... The quotes are not being escaped. Just add a backslash before any quotes, double or single within your HTML code. That should do it. ;). I am using this method:
$(\"td#content\").html(LOTS_OF_HTML_CODE_HERE);
$("td#content").html("<a href=\"http://www.example.com\">my link</a>");