|
-
Sep 22nd, 2002, 10:17 PM
#1
Thread Starter
Lively Member
How do I filter off HTML tags?
Hi ppl!
I'm really new to this program and I need your assistance for this project of mine.
As mention above, how do I filter off html tags from a text file which is taken down from a website?
-
Sep 22nd, 2002, 10:21 PM
#2
PowerPoster
Can you explain just a little more. Do you want the text from the page? Do you want to find certain elements of the page?
-
Sep 22nd, 2002, 10:31 PM
#3
Thread Starter
Lively Member
Oh sorry, as I'm very newbie in here.
I have written a program just to extract the Source code of any website and written it down and a txt file. As it is written is Java, I need to filter off those tags in order for me to retrive information inside this text file.. I'm not sure whether I have explained well enuff but please do ask about your doubts to my question.
Thanks a million..
-
Sep 22nd, 2002, 11:39 PM
#4
PowerPoster
You can open the file in notepad.
If you need to strip of all tags then you are going to want to read up on the string class and it's methods. Specifically look at the IndexOf method and the SubString method.
-
Sep 23rd, 2002, 12:02 AM
#5
Thread Starter
Lively Member
Thank you for your guidance..
-
Sep 23rd, 2002, 12:48 AM
#6
Thread Starter
Lively Member
i have read up those topics but still can't undertsnad due to my stupidlity.. Is there any more other simpler ways to filter it off?
-
Sep 23rd, 2002, 01:16 AM
#7
Thread Starter
Lively Member
Maybe you experts can teach me how do I search from a text file like search from " < " to " > " and I can delete that entire whole thing.. Maybe like that will helps me to filter it off the html tags?
-
Sep 23rd, 2002, 06:09 AM
#8
yay gay
like it's been refered before..use the indexof() and substring() functions..search over msdn to look for that if u dont know how to use them...or CTRL + F1 in IDE to know about that...and we are not experts..we just use the brain
-
Sep 23rd, 2002, 08:13 PM
#9
Thread Starter
Lively Member
Thank youonce again..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|