[REBOL] Re: looking for a function...
From: al:bri:xtra at: 14-Nov-2000 16:32
> The script failed on some odd/poor HTML code that I couldn't figure out
how to trap:
> >> WRITE %test.txt DO striptags READ %test.html
> ** Syntax Error: Invalid word -- -->.
> ** Where: (line 4) //--> -->
>
> The only place that "//--> --> " appears is in the 4th line of the
written file, not the original. The original has "//-->" & "-->" on separate
lines, so these two are being joined together.
> Any ideas?
Try this line instead:
do striptags.r WRITE %test.txt striptags READ %test.html
'do-ing the text returned from 'striptags caused this error:
> ** Syntax Error: Invalid word -- -->.
> ** Where: (line 4) //--> -->
I hope that helps!
Andrew Martin
ICQ: 26227169
http://members.nbci.com/AndrewMartin/