🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #15920

How to get the TEXT from an HTML? getContent?

#15920
From: Vladimir Ivanov
Date: Thu, 15 Apr 1999 00:00
9 lines
769 bytes
Hi,

I'm trying to get the contents of a URL using url.getContent(). What
I get is the HTML with the tags. Is it possible to get the text only,
without the tags? Do I need to write a ContentHandler, or is there
one that I can use?

Thanks,
Vladimir
Technical Details
Message-ID: <37169C98.D96F1DF@ix.netcom.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,cba6b902578d7222,start
X-Google-Attributes: gidf74b3,public
From: Vladimir Ivanov <"[REMOVE-THIS]puiuvlad"@ix.netcom.com>
Subject: How to get the TEXT from an HTML? getContent?
Date: 1999/04/15
Message-ID: <37169C98.D96F1DF@ix.netcom.com>
X-Deja-AN: 466959455
Content-Transfer-Encoding: 7bit
Organization: A Cappella, Ltd.
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language