Skip to content

Commit

Permalink
Security enhancements and code refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
ali7ali committed Oct 19, 2024
1 parent 8b0e620 commit 8e72624
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions includes/class-alpha-price-table-widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -795,15 +795,23 @@ protected function render()
$this->add_inline_editing_attributes('button_text');

$migration_allowed = Icons_Manager::is_migration_allowed();

$allowed_tags = [
'h2' => [],
'h3' => [],
'h4' => [],
'h5' => [],
'h6' => [],
];
?>

<div class="elementor-price-table">
<?php if ($settings['heading'] || $settings['sub_heading']) : ?>
<div class="elementor-price-table__header">
<?php if (! empty($settings['heading'])) : ?>
<<?php echo esc_attr($settings['heading_tag']); ?> <?php echo wp_kses_post($this->get_render_attribute_string('heading')); ?>>
<<?php echo wp_kses($settings['heading_tag'], $allowed_tags); ?> <?php echo wp_kses_post($this->get_render_attribute_string('heading')); ?>>
<?php echo wp_kses_post($settings['heading']); ?>
</<?php echo esc_attr($settings['heading_tag']); ?>>
</<?php echo wp_kses($settings['heading_tag'], $allowed_tags); ?>>
<?php endif; ?>

<?php if (! empty($settings['sub_heading'])) : ?>
Expand Down

0 comments on commit 8e72624

Please # to comment.