model; $module_type = $model['module_type']; $value = array_key_exists( 'value', $model ) ? $model['value'] : array(); if ( !function_exists( 'Nimble\sek_print_shortcode_module_content' ) ) { function sek_print_shortcode_module_content( $value = array() ) { // Feb 2021 : now saved as a json to fix emojis issues // see fix for https://github.com/presscustomizr/nimble-builder/issues/544 // to ensure retrocompatibility with data previously not saved as json, we need to perform a json validity check $shortcode_mod_html_content = sek_maybe_decode_richtext( $value['text_content'] ); $shortcode_mod_html_content = sek_strip_script_tags( $shortcode_mod_html_content ); // Use our own content filter instead of $content = apply_filters( 'the_content', $tiny_mce_content ); // because of potential third party plugins corrupting 'the_content' filter. https://github.com/presscustomizr/nimble-builder/issues/233 printf( '
%1$s