in reply to Encode quotes except in HTML?
use HTML::Parser; HTML::Parser->new( default_h => [sub { print shift; }, "text"], text_h => [sub { local $_ = shift; s/\"/"/g; print; }, "text"], )->parse(join "", <DATA>); __END__ <a href="bob.html">"Hi!"</a>
-- Randal L. Schwartz, Perl hacker
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: Encode quotes except in HTML?
by tye (Sage) on Sep 18, 2000 at 23:14 UTC | |
by runrig (Abbot) on Sep 18, 2000 at 23:41 UTC | |
by tye (Sage) on Sep 19, 2000 at 00:00 UTC | |
by merlyn (Sage) on Sep 18, 2000 at 23:43 UTC |