Team:Warsaw/JSTest
From 2008.igem.org
(Difference between revisions)
Line 93: | Line 93: | ||
function trimContents(ans, title) | function trimContents(ans, title) | ||
{ | { | ||
- | title=removeHTMLTags(title); | + | //title=removeHTMLTags(title); |
//ans=ans.replace("<h3></h3>",""); | //ans=ans.replace("<h3></h3>",""); | ||
h3=new RegExp(/<(h3).*>(.*)<\/\1>/); | h3=new RegExp(/<(h3).*>(.*)<\/\1>/); | ||
Line 105: | Line 105: | ||
var endpos=ans.search(h3,titlepos+1); | var endpos=ans.search(h3,titlepos+1); | ||
alert(ans.match(h3,titlepos)); | alert(ans.match(h3,titlepos)); | ||
- | var curtitle= | + | var curtitle=ans.match(h3,titlepos); |
if (curtitle==title) { | if (curtitle==title) { |
Revision as of 23:39, 25 October 2008
|