diff --git a/php/classes/class-qmn-quiz-manager.php b/php/classes/class-qmn-quiz-manager.php index 7fca97b2c..60aabe89f 100644 --- a/php/classes/class-qmn-quiz-manager.php +++ b/php/classes/class-qmn-quiz-manager.php @@ -1979,7 +1979,7 @@ public function submit_results( $qmn_quiz_options, $qmn_array_for_variables ) { // Prepares data to be sent back to front-end. $return_array = array( 'quizExpired' => false, - 'display' => htmlspecialchars_decode( $result_display ), + 'display' => $result_display, 'redirect' => apply_filters( 'mlw_qmn_template_variable_results_page', $results_pages['redirect'], $qmn_array_for_variables ), 'result_status' => array( 'save_response' => $qmn_array_for_variables['response_saved'], diff --git a/php/classes/class-qsm-emails.php b/php/classes/class-qsm-emails.php index 602271f33..a77445373 100644 --- a/php/classes/class-qsm-emails.php +++ b/php/classes/class-qsm-emails.php @@ -506,8 +506,9 @@ function( $matches ) { $content = '%' . wp_strip_all_tags( preg_replace('/^\s+|\s+$/u', '', $matches[1] ) ) . '%'; return $content; }, - wp_kses_post( $emails[ $i ]['content'] ) + $emails[ $i ]['content'] ); + $emails[ $i ]['content'] = wp_kses_post( $emails[ $i ]['content'] ); } $mlwQuizMasterNext->pluginHelper->qsm_register_language_support( $emails[ $i ]['subject'], "quiz-email-subject-{$i}-{$quiz_id}" ); $mlwQuizMasterNext->pluginHelper->qsm_register_language_support( $emails[ $i ]['content'], "quiz-email-content-{$i}-{$quiz_id}" ); diff --git a/php/classes/class-qsm-results-pages.php b/php/classes/class-qsm-results-pages.php index c892712df..6891a79e3 100644 --- a/php/classes/class-qsm-results-pages.php +++ b/php/classes/class-qsm-results-pages.php @@ -374,8 +374,9 @@ function( $matches ) { $content = '%' . wp_strip_all_tags( preg_replace('/^\s+|\s+$/u', '', $matches[1] ) ) . '%'; return $content; }, - wp_kses_post( $pages[ $i ]['page'] ) + $pages[ $i ]['page'] ); + $pages[ $i ]['page'] = wp_kses_post( $pages[ $i ]['page'] ); } $pages[ $i ]['default_mark'] = sanitize_text_field( $pages[ $i ]['default_mark'] );