diff --git a/jquery/jquery.js b/jquery/jquery.js index 9f35e1a9..b6738a80 100644 --- a/jquery/jquery.js +++ b/jquery/jquery.js @@ -387,8 +387,16 @@ $.clean = function(a) { var r = []; for ( var i = 0; i < a.length; i++ ) { if ( a[i].constructor == String ) { + if ( a[i].indexOf(""; + } var div = document.createElement("div"); div.innerHTML = a[i]; + if ( tr ) { + div = div.firstChild.firstChild; + } for ( var j = 0; j < div.childNodes.length; j++ ) { r[r.length] = div.childNodes[j]; }