stefan k has asked for the wisdom of the Perl Monks concerning the following question:
this has probably been asked before but I could not find a good solution for this. sorry!
The Problem is: I need to filter all the links in a HTML document through a routine which decides what to do. Therefore it takes a) the kind of tag b) the link in there (e.g. href in a or background in td) and c) some kind of replacement for a part of the old link.
I've been fiddling with HTML::Filter and HTML::Parser but I got to admit that I don't fully understand the mechanism of overwriting some of their subs. The "filtered_html" example from the HTML::Filter manpage seemed interesting to me, but I didn't manage to set it up.
Thanks for any help and/or clue and/or tip and RESPECT Stefan K
$dom = "skamphausen.de"; ## May The Open Source Be With You! $Mail = "mail@$dom; $Url = "http://www.$dom";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Filter Links in HTML-documents
by davorg (Chancellor) on Dec 19, 2000 at 21:08 UTC | |
|
Re: Filter Links in HTML-documents
by ichimunki (Priest) on Dec 19, 2000 at 22:25 UTC | |
|
Re: Filter Links in HTML-documents
by merlyn (Sage) on Dec 19, 2000 at 21:05 UTC |