Dim pos Dim tmpBegin Dim tmpEnd Function RemoveHTML(strSource) Do pos = 1 tmpBegin = inStr(pos,strSource,"<") If tmpBegin > 0 Then pos = tmpBegin If LCase(mid(strSource,tmpBegin,7)) = "<script" Then tmpEnd = Instr(tmpBegin,LCase(strSource),"</script>") strSource = Left(strSource,tmpBegin-1) & Right(strSource,Len(strSource)-tmpEnd-8) ElseIf Lcase(mid(strSource,tmpBegin,2)) = Chr(60) & "%" Then tmpEnd = Instr(tmpBegin,Lcase(strSource),"%" & Chr(62)) strSource = Left(strSource,tmpBegin-1) & Right(strSource,Len(strSource)-tmpEnd-3) Else tmpEnd = InStr(pos,strSource,">") If tmpEnd > 0 Then strSource = Left(strSource,tmpBegin-1) & Right(strSource,Len(strSource)-tmpEnd) Else strSource = Left(strSource,tmpBegin-1) Exit Do End If End If Else Exit Do End If Loop RemoveHTML = strSource End Function
Undskyld ventetiden var lige til fordrag squashguy>> simplet og lige til, og den kan det jeg skal bruge. er sikker på det andet også virker, men der lige lovlig meget kode til jeg gider kigge det igennem.
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.