Revision f779d530
Von Tamino Steinert vor mehr als 1 Jahr hinzugefügt
SL/HTML/Restrict.pm | ||
---|---|---|
|
||
sub create {
|
||
my ($class, %params) = @_;
|
||
$params{allowed_tags} //= { map { ($_ => ['/']) } qw(b strong i em u ul ol li sub sup s strike br p div) };
|
||
$params{allowed_tags} //= { map { ($_ => ['/']) } qw(b strong i em u ul ol li sub sup s strike br p div table caption thead tbody tr th td) };
|
||
|
||
return HTML::Restrict->new(rules => $params{allowed_tags});
|
||
}
|
Auch abrufbar als: Unified diff
HTML::Restrict: Tabellen-Tags zu eingeschränkten HTML-Tags hinzugefügt