Team:Warsaw/JSTest

From 2008.igem.org

(Difference between revisions)
Line 25: Line 25:
function removeHTMLTags(strInputCode ){
function removeHTMLTags(strInputCode ){
-
if (strInputCode==undefined) return "";
+
//if (strInputCode==undefined) return "";
strInputCode = strInputCode.replace(/&(lt|gt);/g, function (strMatch, p1){
strInputCode = strInputCode.replace(/&(lt|gt);/g, function (strMatch, p1){
return (p1 == "lt")? "<" : ">";
return (p1 == "lt")? "<" : ">";

Revision as of 14:52, 27 October 2008

Gallery Bricks Notebook Team Project Home