#101885 - 2003-06-07 10:35 AM
Re: HTMLtoText, has anyone done that?
|
masken
MM club member
   
Registered: 2000-11-27
Posts: 1222
Loc: Gothenburg, Sweden
|
hehe.. thanks m8
btw; I took the liberty to make your code readable too
code:
FUNCTION html2text($TxtToConvert) $Count,$Code $TxtToConvert = SPLIT($TxtToConvert, "&#") FOR $Count = 0 TO UBOUND($TxtToConvert) $Code = SPLIT($TxtToConvert[$Count], ";")[0] $TxtToConvert[$Count] = CHR(SUBSTR($Code, 2)) + SUBSTR($TxtToConvert[$Count], LEN($Code) + 1) NEXT $html2text = $TxtToConvert ENDFUNCTION
I'll look into if the CHR() is really useful here... but if you look at the good old ASCII table displayer, you'll see that the cdes don't match?
code:
BREAK ON CLS
AT(9,22) "Starting Windows in progress..." BOX(10,10,12,65,"single") $COL = 12 WHILE $COL < 64 SETASCII("on") $a = 1 CLS WHILE $a < 6 ;Change this value to get more or less numbers $y = 1 WHILE $y <= 80 $z = 1 WHILE $z <= 20 AT($z,$y) "$x " + CHR($x) $z = $z + 1 $x = $x + 1 LOOP $y = $y + 10 LOOP ? SHELL "%COMSPEC% /c pause" $a = $a + 1 LOOP EXIT
_________________________
The tart is out there
|
|
Top
|
|
|
|
HTMLtoText, has anyone done that?
|
masken
|
2003-06-05 03:12 PM
|
Re: HTMLtoText, has anyone done that?
|
Kdyer
|
2003-06-05 04:38 PM
|
Re: HTMLtoText, has anyone done that?
|
masken
|
2003-06-05 04:51 PM
|
Re: HTMLtoText, has anyone done that?
|
Lonkero
|
2003-06-05 06:16 PM
|
Re: HTMLtoText, has anyone done that?
|
masken
|
2003-06-06 08:15 AM
|
Re: HTMLtoText, has anyone done that?
|
Lonkero
|
2003-06-06 10:23 AM
|
Re: HTMLtoText, has anyone done that?
|
masken
|
2003-06-07 12:14 AM
|
Re: HTMLtoText, has anyone done that?
|
masken
|
2003-06-06 01:01 PM
|
Re: HTMLtoText, has anyone done that?
|
masken
|
2003-06-06 01:26 PM
|
Re: HTMLtoText, has anyone done that?
|
Lonkero
|
2003-06-06 03:27 PM
|
Re: HTMLtoText, has anyone done that?
|
Lonkero
|
2003-06-06 03:40 PM
|
Re: HTMLtoText, has anyone done that?
|
Lonkero
|
2003-06-06 03:42 PM
|
Re: HTMLtoText, has anyone done that?
|
masken
|
2003-06-07 10:35 AM
|
Re: HTMLtoText, has anyone done that?
|
Lonkero
|
2003-06-07 10:24 PM
|
Re: HTMLtoText, has anyone done that?
|
Richard H.
|
2003-06-09 09:41 AM
|
Re: HTMLtoText, has anyone done that?
|
Lonkero
|
2003-06-09 10:03 AM
|
Re: HTMLtoText, has anyone done that?
|
masken
|
2003-06-09 04:45 PM
|
Re: HTMLtoText, has anyone done that?
|
Lonkero
|
2003-06-09 04:58 PM
|
Re: HTMLtoText, has anyone done that?
|
Richard H.
|
2003-06-09 05:13 PM
|
Re: HTMLtoText, has anyone done that?
|
masken
|
2003-06-09 05:17 PM
|
Re: HTMLtoText, has anyone done that?
|
Lonkero
|
2003-06-09 06:26 PM
|
Re: HTMLtoText, has anyone done that?
|
Lonkero
|
2003-06-09 06:28 PM
|
Re: HTMLtoText, has anyone done that?
|
masken
|
2003-06-09 10:49 PM
|
Re: HTMLtoText, has anyone done that?
|
Lonkero
|
2003-06-09 11:08 PM
|
Re: HTMLtoText, has anyone done that?
|
masken
|
2003-06-09 11:29 PM
|
Re: HTMLtoText, has anyone done that?
|
Lonkero
|
2003-06-10 10:14 AM
|
Re: HTMLtoText, has anyone done that?
|
masken
|
2003-06-10 10:35 AM
|
Re: HTMLtoText, has anyone done that?
|
Lonkero
|
2003-06-10 11:16 AM
|
Re: HTMLtoText, has anyone done that?
|
masken
|
2003-06-10 11:48 AM
|
Re: HTMLtoText, has anyone done that?
|
Lonkero
|
2003-06-10 11:51 AM
|
Re: HTMLtoText, has anyone done that?
|
masken
|
2003-06-10 11:55 AM
|
Re: HTMLtoText, has anyone done that?
|
Lonkero
|
2003-06-11 12:15 AM
|
Re: HTMLtoText, has anyone done that?
|
Lonkero
|
2003-06-11 12:22 AM
|
Re: HTMLtoText, has anyone done that?
|
Lonkero
|
2003-06-11 12:27 AM
|
Re: HTMLtoText, has anyone done that?
|
masken
|
2003-06-10 01:29 PM
|
Re: HTMLtoText, has anyone done that?
|
Lonkero
|
2003-06-10 01:33 PM
|
Re: HTMLtoText, has anyone done that?
|
Lonkero
|
2003-06-10 01:34 PM
|
Re: HTMLtoText, has anyone done that?
|
Lonkero
|
2003-06-10 01:49 PM
|
Re: HTMLtoText, has anyone done that?
|
Lonkero
|
2003-06-10 01:56 PM
|
Re: HTMLtoText, has anyone done that?
|
masken
|
2003-06-10 02:26 PM
|
Re: HTMLtoText, has anyone done that?
|
Lonkero
|
2003-06-10 03:38 PM
|
Re: HTMLtoText, has anyone done that?
|
masken
|
2003-06-10 03:42 PM
|
Re: HTMLtoText, has anyone done that?
|
Lonkero
|
2003-06-10 04:10 PM
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
1 registered
(Allen)
and 483 anonymous users online.
|
|
|