Skip to content

Issue processing site? #41

@youradds

Description

@youradds

Hi,

This module works well - apart from a few sites. For example:

https://ragnitrotta.uk

My code is:

use HTML::Restrict;
my %rules = (
    a       => [qw( href title )],
    b       => [],
    caption => [],
    center  => [],
    em      => [],
    i       => [],
    #img     => [qw( alt border height width src style )],
    li      => [],
    ol      => [],
    p       => [],
    span    => [],
    strong  => [],
    sub     => [],
    sup     => [],
    table   => [qw()],
    tbody   => [],
    td      => [],
    tr      => [],
    u       => [],
    ul      => [],
    title   => [],
    br      => [],
    head    => [],
    div     => [],
    meta    => [qw(name content property)],
    html    => [qw(lang)],
    iframe  => [qw(src)]
);

my $hr = HTML::Restrict->new( rules => \%rules, uri_schemes => [ undef, 'http', 'https', 'tel', 'mailto' ] );
print "before...\n";
$page = $hr->process($page);
print "after ..\n";

The text before shows, but the "after" bit doesn't. Any suggestions? Its been working well otherwise :/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions