Team:Warsaw/JSTest
From 2008.igem.org
(Difference between revisions)
Line 100: | Line 100: | ||
{ | { | ||
h3=new RegExp(/<h3.*>(.*)<\/h3>/ig); | h3=new RegExp(/<h3.*>(.*)<\/h3>/ig); | ||
- | title=removeHTMLTags(title); | + | title=removeHTMLTags(trimStr(title)); |
var titles=ans.match(h3); | var titles=ans.match(h3); | ||
Line 110: | Line 110: | ||
//alert (removeHTMLTags(notags[3])); | //alert (removeHTMLTags(notags[3])); | ||
var currtitle=removeHTMLTags(notags[3]); | var currtitle=removeHTMLTags(notags[3]); | ||
- | if (currtitle | + | if (currtitle.find(title)>0) |
{ | { | ||
if (i+1<titles.length) return ans.substring(ans.indexOf(titles[i]),ans.indexOf(titles[i+1])); | if (i+1<titles.length) return ans.substring(ans.indexOf(titles[i]),ans.indexOf(titles[i+1])); |
Revision as of 01:38, 26 October 2008
|