Article View: comp.sys.mac.apps
Article #12416Re: Stripping out HTML
From: Heath Raftery
Date: Tue, 08 Jul 2003 22:52
Date: Tue, 08 Jul 2003 22:52
17 lines
1653 bytes
1653 bytes
In aus.computers.mac Cat <meow@purring.cat> wrote:
> Hi all
> A friend has a bunch of html files that she needs to strip all the code
> out of, to leave plain text. Is there an OS X program that does this?
Another suggestion, which can be very handy in certain situations
where you literally want to strip the tags out leaving the text as it
was in the source file:
% cat myHTMLfile.html | perl -pe 's/<.+?>//g'
--
*--------------------------------------------------------*
| ^Nothing is foolproof to a sufficiently talented fool^ |
| Heath Raftery, HRSoftWorks _\|/_ |
*______________________________________m_('.')_m_________*
Technical Details
Message-ID:
<befi00$29h$1@seagoon.newcastle.edu.au>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!logbridge.uoregon.edu!news.maxwell.syr.edu!news1.optus.net.au!optus!news.usyd.edu.au!news.newcastle.edu.au!not-for-mailReferences:
<meow-4429DE.22290508072003@otis.netspace.net.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10b5e3,a38fe3e5c58757bd
X-Google-Attributes: gid10b5e3,public
X-Google-Thread: feb82,a38fe3e5c58757bd
X-Google-Attributes: gidfeb82,public
X-Google-ArrivalTime: 2003-07-08 16:20:05 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!logbridge.uoregon.edu!news.maxwell.syr.edu!news1.optus.net.au!optus!news.usyd.edu.au!news.newcastle.edu.au!not-for-mail
From: Heath Raftery <hraftery@myrealbox.com>
Newsgroups: comp.sys.mac.apps,aus.computers.mac
Subject: Re: Stripping out HTML
Date: 8 Jul 2003 22:52:48 GMT
Organization: HRSoftWorks <http://hrsoftworks.hopto.org>
Lines: 17
Sender: HEATH RAFTERY <c2004527@helios.newcastle.edu.au>
Message-ID: <befi00$29h$1@seagoon.newcastle.edu.au>
References: <meow-4429DE.22290508072003@otis.netspace.net.au>
NNTP-Posting-Host: helios.newcastle.edu.au
User-Agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (SunOS/5.6 (sun4u))