Mistři v programování na #hovnokod

JavaScript #697

f = 0;
while (f != -1) {
f = title.indexOf("<img ");
if (f == -1 ) { f = title.indexOf("< img "); }
if (f == -1 ) { f = title.indexOf("<  img "); }
if (f == -1 ) { f = title.indexOf("<IMG "); }
if (f == -1 ) { f = title.indexOf("< IMG "); }
if (f == -1 ) { f = title.indexOf("<  IMG "); }
if ( f != -1 ) {
    t = -1;
    for (i = f ; i < title.length ; i++) {
        if ( title.substr(i, 1) == ">" ) { t = i ; i = title.length; }
    }
    if (t != -1) {
        ttl = title;
        title = ttl.substring(0, f) + ttl.substring(t + 1, title.length);
    }
}

HovnoKod,