Team:Warsaw/JSTest2
From 2008.igem.org
(Difference between revisions)
Line 213: | Line 213: | ||
{ | { | ||
var notags=titles[i].split(/(<h3>)|(<\/h3>)/i); | var notags=titles[i].split(/(<h3>)|(<\/h3>)/i); | ||
- | + | if (notags[3]==undefined) var currtitle=removeHTMLTags(notags[0]); | |
- | var currtitle=removeHTMLTags(notags[3]); | + | else var currtitle=removeHTMLTags(notags[3]); |
currtitle=trimStr(currtitle.replace(/\+/g,' ')); | currtitle=trimStr(currtitle.replace(/\+/g,' ')); | ||
if(currtitle!="") ans_topics.push(currtitle); | if(currtitle!="") ans_topics.push(currtitle); |
Revision as of 15:22, 27 October 2008
Browse by topics |