Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: HTML::Scrubber stripping hrefs when I don't want it to

by tangent (Priest)
on Mar 12, 2012 at 17:57 UTC ( #959153=note: print w/replies, xml ) Need Help??

in reply to HTML::Scrubber stripping hrefs when I don't want it to

$scrubber->default(1) allows the tags ('a' etc.) but not the tag's attributes ('href' etc.). To allow the 'href' attribute you need to change it to:
# allow href $scrubber->default(1,{'href'=> 1}); # or allow all tag attributes $scrubber->default(1,{'*'=> 1});
and it's more like a doorman than a WMD :)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://959153]
[james28909]: it would be to much work just to get around renaming three subs lol
[james28909]: but you could put it all in one sub and return the same data type that was inputted. i could write a small example maybe
[Lady_Aleena]: Their uses are also vastly different.
[Lady_Aleena]: The first two make hashes and arrays from a file, the third returns data from a pre-existing hash.
[Lady_Aleena]: Well, HoH and AoH respectively.

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2017-05-24 05:06 GMT
Find Nodes?
    Voting Booth?