From 1d42d6f6f767e8462b42f76cb74880ebe0c0e338 Mon Sep 17 00:00:00 2001 From: Benjamin Intal Date: Wed, 4 Oct 2023 12:09:07 +0800 Subject: [PATCH] added space between cut text --- src/block/accordion/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/block/accordion/index.php b/src/block/accordion/index.php index cef9367cf..3e21f8d2b 100644 --- a/src/block/accordion/index.php +++ b/src/block/accordion/index.php @@ -67,7 +67,7 @@ function stackable_load_accordion_frontend_polyfill_script() { add_action( 'stackable/accordion/enqueue_scripts', 'stackable_load_accordion_frontend_polyfill_script' ); } -if ( ! class_exists( 'Stackable_Accordion_FAQ_Schema') ) { +if ( ! class_exists( 'Stackable_Accordion_FAQ_Schema' ) ) { class Stackable_Accordion_FAQ_Schema { public $faq_entities = []; @@ -95,7 +95,7 @@ public function get_faq_answer( $block, $answer ) { // check if it contains a text if ( trim( wp_strip_all_tags( $block[ 'innerHTML' ], true ) ) != '' ) { // return the text after stripping all tags except
- return $answer . trim( strip_tags( $block[ 'innerHTML'], ["
"] ) ); + return trim( $answer . ' ' . trim( strip_tags( $block['innerHTML'], ["
"] ) ) ); } return $answer; }