>
',
esc_attr( 'collapsible-header ' . $collapsible_header_class ),
// phpcs:ignore WordPress.Security.EscapeOutput -- $button_id_attr is escaped above.
$button_id_attr,
esc_attr( $collapsible_config['expanded'] ),
// phpcs:ignore WordPress.Security.EscapeOutput -- $help_text is an instance of WPSEO_Admin_Help_Panel, which escapes it's own output.
$help_text->get_button_html(),
esc_html( $title ) . wp_kses_post( $title_after ),
wp_kses_post( $collapsible_config['toggle_icon'] )
);
}
else {
echo '
';
}
}
?>
get_panel_html();
$container_id_attr = '';
if ( ! empty( $paper_id ) ) {
$container_id_attr = sprintf( ' id="%s"', esc_attr( $paper_id_prefix . $paper_id . '-container' ) );
}
printf(
'
%3$s
',
// phpcs:ignore WordPress.Security.EscapeOutput -- $container_id_attr is escaped above.
$container_id_attr,
esc_attr( 'paper-container ' . $collapsible_config['class'] ),
$content
);
?>