procedure TForm1.BitBtn1Click(Sender: TObject);var s: string; k, k1: Integer;begin s := M1.Lines.Text; While True do begin k := Pos('<script', s); If k = 0 then exit; k1 := Pos('/script', s); If k1 = 0 then exit; k1 := PosEx('>', s, k1); If k1 = 0 then exit; If k1 < k then exit; Delete(s, k, k1-k+1) end; M1.Lines.Text:=s;end;
.LoadFromFile.SaveToFile.Text