It may strip things that you want, but if "<" and ">" were in an html document, it 
wouldn't shot up anyways, so it's probably safe to strip it out.

Travis

---- Original Message ----
From: "Moore, Jim" <[EMAIL PROTECTED]>
Sent: 2001-02-05 14:54:06.0
To: JRun-Talk <[EMAIL PROTECTED]>
Subject: RE: Strip HTML

shouldn't be too difficult to strip out everything between "<" and ">" tags,
then convert & back to &, � back to a space, etc. The danger is
that you may remove things you dont want to--for instance, in the preceding
sentence it would have removed '<" and ">' leaving 'between "" tags'

-----Original Message-----
From: Ralph Fiol [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 05, 2001 4:43 PM
To: JRun-Talk
Subject: Strip HTML


Does anyone know how I can strip all HTML from a string?  That is, I want to
hit a URL using HttpURLConnection (etc.), then remove any HTML return by
getInputStream().  Any ideas?

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to