My code is like this
$(\"a[href]\").each(function () { if ($(this).attr(\"href\").toLowerCase().indexOf(\"javascript:\") != 0 && $(this).attr
try this code , Working fiddle
$("a[href]:not(.tax-switch)").each(function () { $("#myDIV").append(''+ $(this).html()+''); });
'+ $(this).html()+'