Skip to content

Commit

Permalink
added space between cut text
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Intal authored and Benjamin Intal committed Oct 4, 2023
1 parent 8505ebd commit 1d42d6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/block/accordion/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];

Expand Down Expand Up @@ -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 <br>
return $answer . trim( strip_tags( $block[ 'innerHTML'], ["<br>"] ) );
return trim( $answer . ' ' . trim( strip_tags( $block['innerHTML'], ["<br>"] ) ) );
}
return $answer;
}
Expand Down

0 comments on commit 1d42d6f

Please sign in to comment.