• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
script to remove html
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

script to remove html


  • Subject: script to remove html
  • From: Miro Lucassen <email@hidden>
  • Date: Mon, 15 Oct 2001 23:24:58 +0200

A friend advised me this list for an applescript question.I have a
datafile from an online bank. It contains some html-codes that i replace
with tabs to use the data in an AppleWorks database. After this
replacement-script i have a file with data and an html-header of 25 to 30
lines. Now i want to write a subroutine that strips all remaining
html-code plus the other text in this 'header' - this information is not
needed.What i cannot find out is how to write a script that removes lines
like the following:

<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="girotel.css"><script>if
(parent.frames.length == 0) location.replace("/GTO");</script>
</head>
<body border="1" marginwidth="0" marginheight="0" class="gtobody"
onload="javascript:top.aj = false;">
<script language="Javascript">document.writeln(top.ae(4, 0, "EUR",
"euro", "Alle", "610"));</script>
<form name="frmBlad" method="post"
action="GNDH0578_Server.html?command=610" target="Blad"><table
cellpadding="0" cellspacing="0" border="0" width="100%">
<tr class="ontitelachter">
<td colspan="2">
<span class="TDKop">Mutaties van de
afgelopen*</span>&nbsp;
<select name="selPeriode" onChange="javascript:if (top.t())
{document.forms.frmBlad.submit();}">
<option value="7">week
<option value="14">2 weken
<option value="21">3 weken
<option selected value="28">4 weken
</select>
<span class="TDKop">op rekening(en)</span>&nbsp;
<select name="selRekNummer" onChange="javascript:if
(top.t()) {document.forms.frmBlad.submit();}">
<option value="4178577">4178577
<option value="7212702">7212702
<option value="5707466">5707466
<option selected value="Alle">Alle </select>
<td class="TDKop">Nieuw saldo&nbsp;NLG&nbsp;<span
class="val">3.100,79</span>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr class="titelachter">
<td class="TDKop">Rekening
<td class="TDKop">Datum
<td class="TDKop">Naam,&nbsp;Kenmerk,&nbsp;Mededelingen
<td class="TDKop">Code <td
class="TDKop">Tegenrekening <td
class="TDKop">Af/Bij <td
class="TDKop">&nbsp; <td
class="TDKop">Bedrag </tr><tr class="onevenLijn">
How would you do this?
Greetings from the Netherlands--
Miro Lucassen
Amersfoort
http://www.euronet.nl/users/miro/
(voor MacGiroBase, prettiger Girotellen met de Macintosh)


  • Prev by Date: Holy Rusted Coding Batman!!!(Was last request...)
  • Next by Date: Re: filename to bitmap
  • Previous by thread: RE: Holy Rusted Coding Batman!!!(Was last request...)
  • Next by thread: Re: script to remove html
  • Index(es):
    • Date
    • Thread