Team:Warsaw/JSTest

From 2008.igem.org

(Difference between revisions)
Line 105: Line 105:
for (var i=0;i<titles.length;i++)
for (var i=0;i<titles.length;i++)
{
{
-
if (titles[i]!=undefined)  
+
if (titles[i].search("h3")>0)  
{
{
-
var notags=removeHTMLTags(trimStr(titles[i]));
+
var notags=titles[i].split(/(<h3>)|(<\/h3>)/i);
-
if (notags==removeHTMLTags(trimStr(title))) return "Hit: "+titles[i];
+
alert (notags);
}
}
}
}

Revision as of 01:26, 26 October 2008

Gallery Bricks Notebook Team Project Home