diff --git a/src/blocks/button/block.php b/src/blocks/button/block.php index 581be283..65508196 100644 --- a/src/blocks/button/block.php +++ b/src/blocks/button/block.php @@ -62,7 +62,7 @@ class="ub-button-block-main ub-button-' . esc_attr($size) . height="' . esc_attr($iconSize[$size]) . '", width="' . esc_attr($iconSize[$size]) . '" viewBox="0, 0, ' . Ultimate_Blocks_IconSet::generate_fontawesome_icon($chosenIcon)[0] . ', ' . Ultimate_Blocks_IconSet::generate_fontawesome_icon($chosenIcon)[1] .'">': '') - .'' . esc_html($buttonText) . ' + .'' . wp_filter_nohtml_kses($buttonText) . ' ' : join('', array_map('ub_buttons_parse', $buttons))); $classes = array(); if(isset($buttons) && count($buttons) > 0){ diff --git a/src/blocks/buttons/button/block.php b/src/blocks/buttons/button/block.php index 29b43ca5..b68dff47 100644 --- a/src/blocks/buttons/button/block.php +++ b/src/blocks/buttons/button/block.php @@ -25,7 +25,7 @@ class="ub-button-block-main ub-button-' . $size . 'viewBox="0, 0, ' . Ultimate_Blocks_IconSet::generate_fontawesome_icon($chosenIcon)[0] . ', ' . Ultimate_Blocks_IconSet::generate_fontawesome_icon($chosenIcon)[1] . '">' . '': '') - .'' . esc_html($buttonText) . ' + .'' . wp_filter_nohtml_kses($buttonText) . ' '; $classes = array('ub-button'); diff --git a/src/blocks/call-to-action/block.php b/src/blocks/call-to-action/block.php index 24419a5a..529189bc 100644 --- a/src/blocks/call-to-action/block.php +++ b/src/blocks/call-to-action/block.php @@ -14,18 +14,18 @@ function ub_render_call_to_action_block($attributes){
<' . ($useHeadingTag ? esc_attr($selectedHeadingTag) : 'p') . ' class="ub_call_to_action_headline_text"' . ($blockID === '' ? ' style="font-size: ' . esc_attr($headFontSize) . 'px; color: ' . esc_attr($headColor) . '; text-align: ' . esc_attr($headAlign) . ';"' : '') . '>' . - esc_html($ub_call_to_action_headline_text) . '
+ wp_filter_nohtml_kses($ub_call_to_action_headline_text) . '

' . - esc_html($ub_cta_content_text) . '

+ wp_filter_nohtml_kses($ub_cta_content_text) . '

'; + wp_filter_nohtml_kses($ub_cta_button_text) . '

'; } function ub_register_call_to_action_block() { diff --git a/src/blocks/content-filter/block.php b/src/blocks/content-filter/block.php index e9caa9e6..7b407e99 100644 --- a/src/blocks/content-filter/block.php +++ b/src/blocks/content-filter/block.php @@ -87,14 +87,14 @@ function ub_render_content_filter_block($attributes, $content){ foreach((array)$newFilterArray as $key1 => $filterGroup){ $filterList .= '
-
' . esc_html($filterGroup['category']) . '
'; +
' . wp_filter_nohtml_kses($filterGroup['category']) . '
'; $filters = '
'; foreach($filterGroup['filters'] as $key2 => $tag){ $filters .= '
' . - esc_html($tag) . '
'; + wp_filter_nohtml_kses($tag) . '
'; } $filterList .= $filters . '
'; $filterList .= ''; diff --git a/src/blocks/content-toggle/block.php b/src/blocks/content-toggle/block.php index bf43a5ad..0dde6f3f 100644 --- a/src/blocks/content-toggle/block.php +++ b/src/blocks/content-toggle/block.php @@ -73,7 +73,7 @@ function ub_render_content_toggle_panel_block( $attributes, $content, $block_obj . ( $parentID === '' ? ' style="background-color: ' . esc_attr($theme) . ';"' : '' ) . ( $preventCollapse ? ' aria-disabled="true"' : '' ) . '" aria-controls="ub-content-toggle-panel-' . esc_attr($index) . '-' . esc_attr($parentID) . '" tabindex="0"> <' . esc_attr($titleTag) . ' class="' . $classNamePrefix . '-accordion-title ub-content-toggle-title-' . esc_attr($parentID) . '"' - . ( $parentID === '' ? ' style="color:' . esc_attr($titleColor) . ';"' : '' ) . '>' . esc_html($panelTitle) . '' . + . ( $parentID === '' ? ' style="color:' . esc_attr($titleColor) . ';"' : '' ) . '>' . wp_filter_nohtml_kses($panelTitle) . '' . ( $toggleIcon === 'none' ? '' : '
diff --git a/src/blocks/countdown/block.php b/src/blocks/countdown/block.php index 888d90c9..600b7395 100644 --- a/src/blocks/countdown/block.php +++ b/src/blocks/countdown/block.php @@ -138,7 +138,7 @@ function ub_generateDigitArray($value, $maxValue = 0){ .'
'; } else return '
'. esc_html($expiryMessage) .'
'; + ($blockID === ''?'style="text-align:'. esc_attr($messageAlign) .';' :'id="ub_countdown_'. esc_attr($blockID) .'"').'>'. wp_filter_nohtml_kses($expiryMessage) .''; } function ub_register_countdown_block() { diff --git a/src/blocks/counter/block.php b/src/blocks/counter/block.php index cc43ab41..1e76d3e8 100644 --- a/src/blocks/counter/block.php +++ b/src/blocks/counter/block.php @@ -78,7 +78,7 @@ public function ub_render_counter_block($attributes, $content, $block){ 'style' => $styles ) ); - $label_markup = '
' . esc_html($label) . '
'; + $label_markup = '
' . wp_filter_nohtml_kses($label) . '
'; $block_content = sprintf( '
-

' . esc_html($columnOneTitle) . '

-

' . esc_html($columnOneBody) . '

'; +

' . wp_filter_nohtml_kses($columnOneTitle) . '

+

' . wp_filter_nohtml_kses($columnOneBody) . '

'; $column2 = '
' . esc_attr($imgTwoAlt) . ' -

' . esc_html($columnTwoTitle) . '

-

' . esc_html($columnTwoBody) . '

'; +

' . wp_filter_nohtml_kses($columnTwoTitle) . '

+

' . wp_filter_nohtml_kses($columnTwoBody) . '

'; $column3 = '
' . esc_attr($imgThreeAlt) . ' -

' . esc_html($columnThreeTitle) . '

-

' . esc_html($columnThreeBody) . '

'; +

' . wp_filter_nohtml_kses($columnThreeTitle) . '

+

' . wp_filter_nohtml_kses($columnThreeBody) . '

'; $columns = $column1; diff --git a/src/blocks/how-to/block.php b/src/blocks/how-to/block.php index 7c03efd4..95a643b5 100644 --- a/src/blocks/how-to/block.php +++ b/src/blocks/how-to/block.php @@ -41,7 +41,7 @@ function ub_convert_to_paragraphs($string){ } else{ $string = explode('
', $string); - $string = array_map(function($p){return '

' . esc_html($p) . '

';}, $string); + $string = array_map(function($p){return '

' . wp_filter_nohtml_kses($p) . '

';}, $string); return implode('', $string); } } @@ -56,12 +56,12 @@ function ub_render_how_to_block($attributes){ $suppliesCode = '"supply": ['; if($advancedMode && $includeSuppliesList){ - $header .= '<' . esc_attr($secondLevelTag) . '>' . esc_html($suppliesIntro) . ''; + $header .= '<' . esc_attr($secondLevelTag) . '>' . wp_filter_nohtml_kses($suppliesIntro) . ''; if(isset($supplies) && count($supplies) > 0){ $header .= $suppliesListStyle === 'ordered' ? ' $s){ - $header .= '
  • ' . esc_html($s['name']) . ($s['imageURL'] === '' ? '' : + $header .= '
  • ' . wp_filter_nohtml_kses($s['name']) . ($s['imageURL'] === '' ? '' : '
    ') . '
  • '; if($i > 0){ $suppliesCode .= ','; @@ -77,12 +77,12 @@ function ub_render_how_to_block($attributes){ $toolsCode = '"tool": ['; if($advancedMode && $includeToolsList){ - $header .= '<' . esc_attr($secondLevelTag) . '>' . esc_html($toolsIntro) . ''; + $header .= '<' . esc_attr($secondLevelTag) . '>' . wp_filter_nohtml_kses($toolsIntro) . ''; if(isset($tools) && count($tools) > 0){ $header .= $toolsListStyle === 'ordered' ? ' $t){ - $header .= '
  • ' . esc_html($t['name']) . ($t['imageURL'] === '' ? '' : + $header .= '
  • ' . wp_filter_nohtml_kses($t['name']) . ($t['imageURL'] === '' ? '' : '
    ') . '
  • '; if($i > 0){ $toolsCode .= ','; @@ -97,7 +97,7 @@ function ub_render_how_to_block($attributes){ $costDisplay = $showUnitFirst ? $costCurrency . ' ' . $cost : $cost . ' ' . $costCurrency; - $timeDisplay = '
    <' . esc_attr($secondLevelTag) . '>' . esc_html($timeIntro) . ''; + $timeDisplay = '
    <' . esc_attr($secondLevelTag) . '>' . wp_filter_nohtml_kses($timeIntro) . ''; $totalTimeDisplay = ''; @@ -107,7 +107,7 @@ function ub_render_how_to_block($attributes){ } } - $timeDisplay .= '

    ' . esc_html($totalTimeText) . esc_html($totalTimeDisplay) . '

    '; + $timeDisplay .= '

    ' . wp_filter_nohtml_kses($totalTimeText) . wp_filter_nohtml_kses($totalTimeDisplay) . '

    '; $ISOTotalTime = generateISODurationCode($totalTime); @@ -118,7 +118,7 @@ function ub_render_how_to_block($attributes){ $stepsDisplay = ($sectionListStyle === 'ordered' ? ''; foreach($section as $i => $s){ - $stepsDisplay .= '
  • <' . esc_attr($secondLevelTag) . '>' . esc_html($s['sectionName']) . '' . + $stepsDisplay .= '
  • <' . esc_attr($secondLevelTag) . '>' . wp_filter_nohtml_kses($s['sectionName']) . '' . ($sectionListStyle === 'ordered' ? ''; $stepsCode .= '{"@type": "HowToSection",' . PHP_EOL . '"name": "'. str_replace("\'", "'", wp_filter_nohtml_kses($s['sectionName'])) . '",' . PHP_EOL @@ -270,14 +270,14 @@ function ub_render_how_to_block($attributes){ "image": "' . esc_url($finalImageURL) . '"' . '}'; return '
    <' . esc_attr($firstLevelTag) . '>' - . esc_html($title) . '' . ub_convert_to_paragraphs($introduction) . $header . + . wp_filter_nohtml_kses($title) . '' . ub_convert_to_paragraphs($introduction) . $header . ($advancedMode ? ($videoURL === '' ? '' : $videoEmbedCode) - . '

    ' . esc_html($costDisplayText) . esc_html($costDisplay) . '

    ' + . '

    ' . wp_filter_nohtml_kses($costDisplayText) . wp_filter_nohtml_kses($costDisplay) . '

    ' . $timeDisplay : '') . $stepsDisplay . - '
    <' . esc_attr($secondLevelTag) . '>' . esc_html($resultIntro) . '' . + '
    <' . esc_attr($secondLevelTag) . '>' . wp_filter_nohtml_kses($resultIntro) . '' . ($finalImageURL === '' ? '' : (!isset($finalImageCaption) || $finalImageCaption === '' ? '' : '
    ') . '' . - (!isset($finalImageCaption) || $finalImageCaption === '' ? '' : '
    ' . esc_html($finalImageCaption) . '
    ')) . + (!isset($finalImageCaption) || $finalImageCaption === '' ? '' : '
    ' . wp_filter_nohtml_kses($finalImageCaption) . '
    ')) . ub_convert_to_paragraphs($howToYield) . '
    ' . $JSONLD; } diff --git a/src/blocks/image-slider/block.php b/src/blocks/image-slider/block.php index 66d4580b..cc8f1a6b 100644 --- a/src/blocks/image-slider/block.php +++ b/src/blocks/image-slider/block.php @@ -19,7 +19,7 @@ function ub_render_image_slider_block($attributes){ ' . esc_attr($image['alt']) . '' . '
    ' . ($captionArray[$key]['link'] === '' ? '' : '') - . esc_html($captionArray[$key]['text']) + . wp_filter_nohtml_kses($captionArray[$key]['text']) . ($captionArray[$key]['link'] === '' ? '' : '') . '
    '; } $classes = array( 'ub_image_slider', 'swiper-container' ); diff --git a/src/blocks/notification-box/block.php b/src/blocks/notification-box/block.php index 99f57aa0..0f9b09bb 100644 --- a/src/blocks/notification-box/block.php +++ b/src/blocks/notification-box/block.php @@ -5,7 +5,7 @@ function ub_render_notification_box_block($attributes){ return '
    -

    '. esc_html($ub_notify_info) .'

    +

    '. wp_filter_nohtml_kses($ub_notify_info) .'

    '; } diff --git a/src/blocks/number-box/block.php b/src/blocks/number-box/block.php index 63dc5bc8..7936e02e 100644 --- a/src/blocks/number-box/block.php +++ b/src/blocks/number-box/block.php @@ -5,26 +5,26 @@ function ub_render_number_box_block($attributes){ $column1 = '
    -

    '. esc_html($columnOneNumber) .'

    +

    '. wp_filter_nohtml_kses($columnOneNumber) .'

    -

    '. esc_html($columnOneTitle) .'

    -

    '. esc_html($columnOneBody) .'

    +

    '. wp_filter_nohtml_kses($columnOneTitle) .'

    +

    '. wp_filter_nohtml_kses($columnOneBody) .'

    '; $column2 = '
    -

    '. esc_html($columnTwoNumber) .'

    +

    '. wp_filter_nohtml_kses($columnTwoNumber) .'

    -

    '. esc_html($columnTwoTitle) .'

    -

    '. esc_html($columnTwoBody) .'

    +

    '. wp_filter_nohtml_kses($columnTwoTitle) .'

    +

    '. wp_filter_nohtml_kses($columnTwoBody) .'

    '; $column3 = '
    -
    -

    '. esc_html($columnThreeNumber) .'

    +
    +

    '. wp_filter_nohtml_kses($columnThreeNumber) .'

    -

    '. esc_html($columnThreeTitle) .'

    -

    '. esc_html($columnThreeBody) .'

    +

    '. wp_filter_nohtml_kses($columnThreeTitle) .'

    +

    '. wp_filter_nohtml_kses($columnThreeBody) .'

    '; $columns = $column1; diff --git a/src/blocks/progress-bar/block.php b/src/blocks/progress-bar/block.php index 92f4d2a3..ced62e71 100644 --- a/src/blocks/progress-bar/block.php +++ b/src/blocks/progress-bar/block.php @@ -52,11 +52,11 @@ function ub_render_progress_bar_block($attributes, $block_content, $block){ $number_suffix = isset($attributes['numberSuffix']) ? $attributes['numberSuffix'] : '%'; $inside_percentage_class = $percentage_position === 'inside' ? " ub_progress-bar-label-inside" : ''; $stripe_style = $is_stripe ? " ub_progress-bar-stripe" : ''; - $detail_text = '
    ' . esc_html($detail) . '

    '; + $detail_text = '
    ' . wp_filter_nohtml_kses($detail) . '

    '; $percentage_text = '

    - ' . esc_html($number_prefix) . ' - ' . esc_html($percentage) . ' - ' . esc_html($number_suffix) . ' + ' . wp_filter_nohtml_kses($number_prefix) . ' + ' . wp_filter_nohtml_kses($percentage) . ' + ' . wp_filter_nohtml_kses($number_suffix) . '

    '; $top_percentage = $show_number && $percentage_position === 'top' ? @@ -77,9 +77,9 @@ function ub_render_progress_bar_block($attributes, $block_content, $block){
    ' : ''; $circle_percentage = $show_number ? '
    - ' . esc_html($number_prefix) . ' - ' . esc_html($percentage) . ' - ' . esc_html($number_suffix) . '
    ' : ''; + ' . wp_filter_nohtml_kses($number_prefix) . ' + ' . wp_filter_nohtml_kses($percentage) . ' + ' . wp_filter_nohtml_kses($number_suffix) . '
    ' : ''; if(!$is_style_circle && !$is_style_half_circle){ $progressBarPath = 'M' . ($barThickness / 2) . ',' . ($barThickness / 2) . 'L' . (100 - $barThickness / 2) . ',' . ($barThickness / 2); diff --git a/src/blocks/review/block.php b/src/blocks/review/block.php index 7b48acf8..387d93f3 100644 --- a/src/blocks/review/block.php +++ b/src/blocks/review/block.php @@ -29,7 +29,7 @@ class="ub_review_percentage_bar_path" stroke-width="1" stroke-dashoffset="' . (100 - $value) . 'px" > -
    ' . esc_html($value) . '%
    +
    ' . wp_filter_nohtml_kses($value) . '%
    '; } @@ -187,18 +187,18 @@ function ub_render_review_block($attributes, $block_content, $block_instance){ return '

    ' . - esc_html($itemName) . '

    ' . esc_html($authorName) . '

    ' . + wp_filter_nohtml_kses($itemName) . '

    ' . wp_filter_nohtml_kses($authorName) . '

    ' . (($enableImage || $enableDescription) && ($imgURL !== '' || $description !== '') ? '
    ' . (!$enableImage || $imgURL === '' ? '' : '' . esc_attr($imgAlt) . '') . - (!$enableDescription || $description === '' ? '' : '
    ' . esc_html($description) . '
    ') . + (!$enableDescription || $description === '' ? '' : '
    ' . wp_filter_nohtml_kses($description) . '
    ') . '
    ' : ''). $ratings .'
    ' . - ($useSummary ? '

    ' . esc_html($summaryTitle) . '

    ' : '') . + ($useSummary ? '

    ' . wp_filter_nohtml_kses($summaryTitle) . '

    ' : '') . '
    ' . - ($useSummary ? '

    ' . esc_html($summaryDescription) . '

    ' : '') . + ($useSummary ? '

    ' . wp_filter_nohtml_kses($summaryDescription) . '

    ' : '') . '
    ' . $average . ($valueType === 'percent' ? '%':'') . '' . ($valueType === 'star' ? ub_generateStarDisplay($average, $starCount, $blockID . '-average', $inactiveStarColor, $activeStarColor, $starOutlineColor, "ub_review_average_stars", "ub_review_star_filter-") : '' ). diff --git a/src/blocks/social-share/block.php b/src/blocks/social-share/block.php index ed418574..b1bd3fa2 100644 --- a/src/blocks/social-share/block.php +++ b/src/blocks/social-share/block.php @@ -67,14 +67,14 @@ function ub_prepare_social_share_icon($icon, $iconShape, $siteName, $link, $capt ' . - ( $caption ? ('' . esc_html($caption) . '') : '' ) . ''; + ( $caption ? ('' . wp_filter_nohtml_kses($caption) . '') : '' ) . ''; } else{ return ($caption ? ('' : '' ); + ( $caption ? '' . wp_filter_nohtml_kses($caption) . '
    ' : '' ); } } diff --git a/src/blocks/star-rating/block.php b/src/blocks/star-rating/block.php index b2a19ba9..1a25ace0 100644 --- a/src/blocks/star-rating/block.php +++ b/src/blocks/star-rating/block.php @@ -25,7 +25,7 @@ function ub_render_star_rating_block($attributes){
    '.$stars.'
    '. ($reviewText === '' || false === $isShowReviewText ? '' : '
    ' . - esc_html($reviewText) + wp_filter_nohtml_kses($reviewText) . '
    ') . '
    '; } diff --git a/src/blocks/styled-box/block.php b/src/blocks/styled-box/block.php index 3ad1645a..5a7dfaec 100644 --- a/src/blocks/styled-box/block.php +++ b/src/blocks/styled-box/block.php @@ -19,10 +19,10 @@ function ub_render_styled_box_numbered_box_column($attributes, $content){ extract($attributes); return '
    -

    ' . esc_html($number) . '

    +

    ' . wp_filter_nohtml_kses($number) . '

    -

    ' . esc_html($title) . '

    -
    ' . esc_html($content) . '
    +

    ' . wp_filter_nohtml_kses($title) . '

    +
    ' . wp_filter_nohtml_kses($content) . '
    '; } @@ -66,15 +66,15 @@ function ub_render_styled_box_block($attributes, $content){ extract($attributes); $renderedBlock = ''; if($mode === 'notification' && $text[0] != ''){ - $renderedBlock = '
    '. esc_html($text[0]) .'
    '; + $renderedBlock = '
    '. wp_filter_nohtml_kses($text[0]) .'
    '; } else if($mode === 'feature'){ foreach(range(0, count($text)-1) as $i){ $renderedBlock .= '
    '. ($image[$i]['url'] === '' ? '' : ''). - '

    '. esc_html($title[$i]) .'

    -

    '. esc_html($text[$i]) .'

    + '

    '. wp_filter_nohtml_kses($title[$i]) .'

    +

    '. wp_filter_nohtml_kses($text[$i]) .'

    '; } } @@ -84,10 +84,10 @@ function ub_render_styled_box_block($attributes, $content){ foreach(range(0, count($text)-1) as $i){ $renderedBlock .= '
    -

    '. esc_html($number[$i]) .'

    +

    '. wp_filter_nohtml_kses($number[$i]) .'

    -

    '. esc_html($title[$i]) .'

    -

    '. esc_html($text[$i]) .'

    +

    '. wp_filter_nohtml_kses($title[$i]) .'

    +

    '. wp_filter_nohtml_kses($text[$i]) .'

    '; } } diff --git a/src/blocks/styled-list/block.php b/src/blocks/styled-list/block.php index dd06edb6..1412bb63 100644 --- a/src/blocks/styled-list/block.php +++ b/src/blocks/styled-list/block.php @@ -78,7 +78,7 @@ function ub_makeList($num, $item, $color, $size){ else{ return '
      ' . esc_html($listItems) . '
    '; + '>
      ' . wp_filter_nohtml_kses($listItems) . '
    '; } } @@ -115,7 +115,7 @@ function ub_render_styled_list_item_block($attributes, $contents, $block){ $styles = ub_get_styled_list_item_styles($block_attributes); - return '
  • ' . esc_html($itemText) . esc_html($contents) . '
  • '; + return '
  • ' . wp_filter_nohtml_kses($itemText) . wp_filter_nohtml_kses($contents) . '
  • '; } function ub_register_styled_list_item_block(){ diff --git a/src/blocks/tabbed-content/block.php b/src/blocks/tabbed-content/block.php index ef6349d8..f9de6767 100644 --- a/src/blocks/tabbed-content/block.php +++ b/src/blocks/tabbed-content/block.php @@ -57,7 +57,7 @@ function ub_render_tabbed_content_block($attributes, $contents){ ($accordionIsActive ? ' active' : '') . ($tabletTabDisplay === 'accordion' ? ' ub-tablet-display' : '') . ($mobileTabDisplay === 'accordion' ? ' ub-mobile-display' : '') . - '">' . esc_html($tabsTitle[$key]) . '' . $tabContent; + '">' . wp_filter_nohtml_kses($tabsTitle[$key]) . '' . $tabContent; array_push($tabContents, $content); } else{ @@ -74,7 +74,7 @@ function ub_render_tabbed_content_block($attributes, $contents){ ($blockID === '' ? ' style="background-color: ' . ($activeTab === $key ? esc_attr($theme) : 'initial') . '; border-color: ' . ($activeTab === $key ? esc_attr($theme) : 'lightgrey') . '; color: ' . ($activeTab === $key ? esc_attr($titleColor) : '#000000') . ';"' : '' ). ' tabindex="-1"> -
    ' . esc_html($title) . '
    '; +
    ' . wp_filter_nohtml_kses($title) . '
    '; } $mobileTabStyle = substr($mobileTabDisplay, 0, strlen($mobileTabDisplay) - 3); diff --git a/src/blocks/table-of-contents/block.php b/src/blocks/table-of-contents/block.php index 1ff5ca62..df841fde 100644 --- a/src/blocks/table-of-contents/block.php +++ b/src/blocks/table-of-contents/block.php @@ -123,7 +123,7 @@ function ub_makeListItem($num, $item, $listStyle, $blockID, $currentGaps){ . ($scrollOption === 'namedelement' ? ' data-scrolltarget="' . $targetType . esc_attr($scrollTarget) . '"' : '') . ' data-initiallyhideonmobile="' . json_encode($hideOnMobile) . '" data-initiallyshow="' . json_encode($showList) . '">'. (('
    -
    '. esc_html($title) . '
    ' . +
    '. wp_filter_nohtml_kses($title) . '
    ' . ($allowToCHiding ? '
    diff --git a/src/blocks/testimonial/block.php b/src/blocks/testimonial/block.php index 3e5254a0..41d1fc80 100644 --- a/src/blocks/testimonial/block.php +++ b/src/blocks/testimonial/block.php @@ -12,15 +12,15 @@ function ub_render_testimonial_block($attributes){

    '. - esc_html($ub_testimonial_text) . '

    + wp_filter_nohtml_kses($ub_testimonial_text) . '

    '. - esc_html($ub_testimonial_author) .'

    + wp_filter_nohtml_kses($ub_testimonial_author) .'

    '. - esc_html($ub_testimonial_author_role) . '

    + wp_filter_nohtml_kses($ub_testimonial_author_role) . '

    ';