diff --git a/includes/MslsAdminIcon.php b/includes/MslsAdminIcon.php index 35828188..d390785c 100644 --- a/includes/MslsAdminIcon.php +++ b/includes/MslsAdminIcon.php @@ -2,6 +2,7 @@ namespace lloc\Msls; +use lloc\Msls\Component\Component; use lloc\Msls\Component\Icon\IconSvg; use lloc\Msls\Component\Icon\IconLabel; @@ -242,7 +243,7 @@ public function get_icon(): string { $icon = sprintf( '%s', esc_attr( $this->language ), - wp_kses( $text, array( 'span' => array() ) ) + wp_kses( $text, Component::get_allowed_html() ) ); break; default: diff --git a/includes/MslsPostTagClassic.php b/includes/MslsPostTagClassic.php index b1d55a83..f2d8ad7b 100644 --- a/includes/MslsPostTagClassic.php +++ b/includes/MslsPostTagClassic.php @@ -2,6 +2,8 @@ namespace lloc\Msls; +use lloc\Msls\Component\Component; + /** * Post Tag Classic * @@ -77,7 +79,7 @@ public function the_input( ?\WP_Term $tag, string $title_format, string $item_fo $this->maybe_set_linked_term( $mydata ); - printf( wp_kses( $title_format ), esc_html( $this->get_select_title() ) ); + printf( wp_kses( $title_format, Component::get_allowed_html() ), esc_html( $this->get_select_title() ) ); foreach ( $blogs as $blog ) { $this->print_option( $blog, $type, $mydata, $item_format );