Autor Beitrag
XenoX
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 50



BeitragVerfasst: Di 11.05.04 19:46 
Hallo Leute,

hab nen Prob und zwar hab ich ne HTML-Mail welche ich in einen AnsiString lade, so weit so gut jetzt würde ich aber gerne die störenden HTML-Tags raus filtern, allerdings is die sache mit pos, delete etc mühseelig............hat einer nen tip für mich ? ne kompo die evtl. solche Tags automatisch mit " " überschreibt? Danke schon mal!

MFG XenoX
aM0xACiLLiN
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 64



BeitragVerfasst: Mi 12.05.04 12:04 
Hi,

Mit Pos etc is das doch kein Thema.. Beispiel:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
functions strip_html(input:string):string;
begin
while (Pos('<',input) > 0) do
 Delete(input,Pos('<',input),Pos('>',copy(input,Pos('<',input),length(input))));
result:=input;
end;


habs jetzt nicht getestet, aber sollte funktionieren ;)

cu
XenoX Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 50



BeitragVerfasst: Mi 12.05.04 17:15 
thx dude =)