Results 1 to 2 of 2
Thread: How to parse HTML tags
- 05-31-2007, 09:38 PM #1
Member
- Join Date
- May 2007
- Posts
- 8
- Rep Power
- 0
- 05-31-2007, 09:42 PM #2levent Guest
You can use following code segment:
But if you need more advanced functionality, you can consider using a HTML parsing library instead:Java Code:String[] html = {"<H1>xxx</H2>","<font size=3>xxxx</font>"}; System.out.println(html[0].replaceAll("\\<.*?\\>","")); System.out.println(html[1].replaceAll("\\<.*?\\>",""));
HTML Parser - HTML Parser
Jericho HTML Parser
Similar Threads
-
Html tags within XML- need help
By iamhappy in forum XMLReplies: 2Last Post: 03-27-2008, 04:21 PM -
HTML tags for Struts
By Java Tip in forum Java TipReplies: 0Last Post: 12-27-2007, 09:58 AM -
How to parse in html
By paty in forum New To JavaReplies: 1Last Post: 07-24-2007, 12:29 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks