[Catalog-sig] HTML

Martin Johansson 045521104@telia.com
Thu, 12 Apr 2001 10:49:01 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_0027_01C0C33E.2F30F460
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I have done this to take away htmlcodes from a textfile but in will not =
work. What can be wrong?


while s !=3D '</HTML>' or '</html>':
        if s =3D=3D '<':
            if s !=3D '>':
                s =3D string.replace(s, "a", "")=20
                s =3D string.replace(s, "b", "")
                s =3D string.replace(s, "t", "")

------=_NextPart_000_0027_01C0C33E.2F30F460
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2920.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I have done this to take away htmlcodes =
from a=20
textfile but in will not work. What can be wrong?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>while s !=3D '&lt;/HTML&gt;' or=20
'&lt;/html&gt;':<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if s =
=3D=3D=20
'&lt;':<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp; if=20
s !=3D=20
'&gt;':<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
s =3D string.replace(s, "a", "")=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;=20
s =3D string.replace(s, "b",=20
"")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;=20
s =3D string.replace(s, "t", "")</FONT></DIV></BODY></HTML>

------=_NextPart_000_0027_01C0C33E.2F30F460--