Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 91d5a27e

Von Tamino Steinert vor 10 Monaten hinzugefügt

  • ID 91d5a27e2ec98711f5482d45c6ccb427b7ea83c1
  • Vorgänger 9b5ddad8
  • Nachfolger 1513c4c2

HTML::Restrict: Tabellen-Tags zu eingeschränkten HTML-Tags hinzugefügt

Unterschiede anzeigen:

SL/HTML/Restrict.pm
7 7

  
8 8
sub create {
9 9
  my ($class, %params)    = @_;
10
  $params{allowed_tags} //= { map { ($_ => ['/']) } qw(b strong i em u ul ol li sub sup s strike br p div) };
10
  $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) };
11 11

  
12 12
  return HTML::Restrict->new(rules => $params{allowed_tags});
13 13
}

Auch abrufbar als: Unified diff