Webmaster Forum Rules | Posting Guide | Contact Us | Testimonials | Contributing Geek Program | Advertise on Geek/Talk
Welcome to the GeekTalk Webmaster Discussion Forums from GeekVillage.com

Click Here To Register. It's Free!

Go Back   geek/talk: Signature-free discourse for serious web publishers > YOUR CREATION: Building & Maintaining A Web Site > Web Development - Programming / Coding
User Name
Password
Register FAQ Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 12-30-2003, 07:49 PM   #1
DougM
Registered User
 
Join Date: Sep 2003
Location: Texas
Posts: 663
Default How to strip links

I think there is a bit of code that can be inserted which will strip links from a page. I would like to know what is. I have seen it in PHP but I want to strip links from HTML pages.

What I am actually trying to accomplish is removing links from blocks of formatted text, entire HTML docs, or better yet multiple HTML docs at once. I am currently removing them one-by-one.

Thoughts?
DougM is offline   Reply With Quote
Old 12-31-2003, 07:26 PM   #2
jessebhunt
Registered User
 
jessebhunt's Avatar
 
Join Date: Aug 2003
Location: Insomnia
Posts: 333
Default

Hi Doug:

Sorry to say... I have no solution for your problem.

I do, however, have a need for the same exact thing. (I need the links stripped only from a block of text... not the entire document.)

It would also work for me if someone knows how to use CSS to strip the links for a paticular class of links (If that is possible).

So, does anyone have any ideas?

Jesse

Sorry Doug... I didn't mean to steal your thread, I just think we are trying to accomplish EXACTLY the same thing.
jessebhunt is offline   Reply With Quote
Old 12-31-2003, 07:32 PM   #3
DougM
Registered User
 
Join Date: Sep 2003
Location: Texas
Posts: 663
Default

Great news for us both

I kept searching and found this

http://www.jafsoft.com/detagger/

This is an awsome tool! It does more than I needed and may help you too. Lots of options. I tried the free version and loved it so I bought it for $20 to allow batch proccessing. Highly recommended.
DougM is offline   Reply With Quote
Old 12-31-2003, 08:53 PM   #4
jessebhunt
Registered User
 
jessebhunt's Avatar
 
Join Date: Aug 2003
Location: Insomnia
Posts: 333
Default

Awesome!

Thanks Doug. I will try it out tomorrow.

Jesse
jessebhunt is offline   Reply With Quote
Old 01-01-2004, 12:08 PM   #5
jessebhunt
Registered User
 
jessebhunt's Avatar
 
Join Date: Aug 2003
Location: Insomnia
Posts: 333
Default

Quote:
I tried the free version and loved it so I bought it for $20 to allow batch proccessing.
What can you do with the batch processing? So far the free version works very well, but I would like to be able to convert an entire directory of files all at once (preferably by overwriting the input files). Will the full version allow me to do that?

Thanks,
Jesse
jessebhunt is offline   Reply With Quote
Old 01-01-2004, 12:26 PM   #6
tobiasussing
Registered User
 
Join Date: Aug 2003
Posts: 156
Default

that is batch processing you just descriped
tobiasussing is offline   Reply With Quote
Old 01-01-2004, 12:31 PM   #7
DougM
Registered User
 
Join Date: Sep 2003
Location: Texas
Posts: 663
Default

Yep,

With the free version when you select more than 1 input file, you receive an error message or something that says "not allowed with unregistered version" or something.

With the registered version you may select as many files as you like at once. I have stripped links from hundreds of documents at once in less than 5 seconds.

By default, Detagger adds the name of one file into the "Output Filename" field. If you want to add multiple files then you will need to replace that filename with a wildcard "*".

I have not found a way to overwrite files and I'm not sure I want to. You must select a seperate directory for the output so the originals will be retained. I just created a desktop folder named "detag-out"

Most of the setting I find useful are here:

conversion options > markup manipulation > detagger options

Last edited by DougM; 01-01-2004 at 12:33 PM.
DougM is offline   Reply With Quote
Old 01-01-2004, 12:36 PM   #8
jessebhunt
Registered User
 
jessebhunt's Avatar
 
Join Date: Aug 2003
Location: Insomnia
Posts: 333
Default

Thanks guys!

I guess I need to break out my credit card.

Last edited by jessebhunt; 01-01-2004 at 03:23 PM.
jessebhunt is offline   Reply With Quote
Old 01-01-2004, 02:01 PM   #9
maddeningcrowds
Registered User
 
Join Date: Nov 2001
Posts: 719
Default

You could just cut and paste into notepad, and then cut and paste back again.... I do that all the time.

Or in dreamweaver, do a search and replace, search for </a> and replace with nothing. Then in the design window all the broken links will show up in yellow, you can delete them one click each.
maddeningcrowds is offline   Reply With Quote
Old 01-01-2004, 02:19 PM   #10
DougM
Registered User
 
Join Date: Sep 2003
Location: Texas
Posts: 663
Default

These tips are handy but if you need to retain formatting (paragraphs, bulleted lists, bolded text, etc.) Notepad won't do and removing one-by-one is OK unless you have MANY pages filled with links as I did.

I did not think of that Notepad trick before. That is a good one.
DougM is offline   Reply With Quote
Old 01-01-2004, 03:21 PM   #11
jessebhunt
Registered User
 
jessebhunt's Avatar
 
Join Date: Aug 2003
Location: Insomnia
Posts: 333
Default

Maddeningcrowds:

I have been using the notepad trick for several weeks on this particular project, but when I do that (as Doug said) I lose formatting like paragraphs, lists, & headings.



I just bought the registered version of Detagger and it works like a charm!

Last edited by jessebhunt; 01-01-2004 at 03:23 PM.
jessebhunt is offline   Reply With Quote
Old 01-02-2004, 11:46 AM   #12
DougM
Registered User
 
Join Date: Sep 2003
Location: Texas
Posts: 663
Default

Jesse:

In regards to your question about overwriting existing files, I received this email message,

-------------------------------------
Hi Doug,

I just found the following comment on the http://www.geekvillage.com/forums site
(I got a customer pointing to this as how they found me).

> I have not found a way to overwrite files and I'm not sure I want to.

You can do this with the console version by adding the qualifier /overwrite

but as you say, I'm not sure I'd advise this :-)

Cheers, Jaf

John A Fotheringham (Jaf) http://www.jafsoft.com/
Convert text files into HTML web pages or RTF documents in seconds
------------------------------------

I would not use this option myself. It's easy enough to delete the originals after scanning the conversions to ensure they are correct. Imagine the grief of overwriting a batch of formatted doc's with unformatted text by mistake.

Just thought I'd pass it on.
DougM is offline   Reply With Quote
Old 01-02-2004, 01:12 PM   #13
jessebhunt
Registered User
 
jessebhunt's Avatar
 
Join Date: Aug 2003
Location: Insomnia
Posts: 333
Default

Thanks Doug.

It was me that purchased the detagger and listed GV as where I heard about it.

I took your original advice and created a desktop folder that I send the "detagged" files to. That work just fine!
jessebhunt is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Amazon launches "Context Links" Czar Making Money with CPA Programs 5 03-31-2007 06:55 PM
GoTo text links? Where? strungout Making Money with CPC and/or CPM Programs 5 09-03-2001 08:05 PM
Random links - java script tower53 Web Design and Webmaster Issues 8 05-22-2001 02:51 AM
Newsletters and AOL links Synozeer Web Design and Webmaster Issues 4 01-19-2001 09:28 AM
Commission Junction - Text Links (?) WildComputer Making Money with CPC and/or CPM Programs 6 04-13-1999 08:08 AM

Please support our advertisers. They ensure our survival.

All times are GMT -5. The time now is 05:21 PM.


GeekVillage.com is copyright © 1998-2015 Curiosity Cave - Science gifts for clever kids. All rights reserved.
Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.