From 86e54d7f8ddabc1db7e944504b0c5d00e8a0712d Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 20 Dec 2021 13:54:06 +0100 Subject: [PATCH] Presenter: eine Instanz der doppelten Funktion restricted_html entfernt --- SL/Presenter/Tag.pm | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/SL/Presenter/Tag.pm b/SL/Presenter/Tag.pm index 25c7d0c2c..a140fe4e4 100644 --- a/SL/Presenter/Tag.pm +++ b/SL/Presenter/Tag.pm @@ -10,7 +10,7 @@ use Exporter qw(import); our @EXPORT_OK = qw( html_tag input_tag hidden_tag javascript man_days_tag name_to_id select_tag checkbox_tag button_tag submit_tag ajax_submit_tag input_number_tag - stringify_attributes restricted_html textarea_tag link_tag date_tag + stringify_attributes textarea_tag link_tag date_tag div_tag radio_button_tag img_tag); our %EXPORT_TAGS = (ALL => \@EXPORT_OK); @@ -369,13 +369,6 @@ sub _set_id_attribute { my $html_restricter; -sub restricted_html { - my ($value) = @_; - - $html_restricter ||= SL::HTML::Restrict->create; - return $html_restricter->process($value); -} - sub textarea_tag { my ($name, $content, %attributes) = @_; @@ -500,10 +493,6 @@ Creates a string from all elements in C<%items> suitable for usage as HTML tag attributes. Keys and values are HTML escaped even though keys must not contain non-ASCII characters for browsers to accept them. -=item C - -Returns HTML stripped of unknown tags. See L. - =back =head2 HIGH-LEVEL FUNCTIONS -- 2.20.1