From 2fbcb5d4985e49fc04f7c2360c1704660913c132 Mon Sep 17 00:00:00 2001 From: PranavAwasthi Date: Thu, 11 Jan 2024 12:57:16 +0530 Subject: [PATCH] Fixed issue with sequential mode in Fill in the blank question --- php/template-variables.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/php/template-variables.php b/php/template-variables.php index 3c1a3fea1..b8a4ad320 100644 --- a/php/template-variables.php +++ b/php/template-variables.php @@ -1129,10 +1129,10 @@ function qsm_questions_answers_shortcode_to_text( $mlw_quiz_array, $qmn_question $is_answer_correct = 0; if ( isset($answer['case_sensitive']) && 1 === intval( $answer['case_sensitive'] ) ) { $decode_show_user_answer = htmlspecialchars_decode( $show_user_answer, ENT_QUOTES ); - $decode_single_user_answer = $mlwQuizMasterNext->pluginHelper->qsm_language_support( $single_answer[0], 'answer-' . $single_answer[0], 'QSM Answers' ); + $decode_single_user_answer = htmlspecialchars_decode( $mlwQuizMasterNext->pluginHelper->qsm_language_support( $single_answer[0], 'answer-' . $single_answer[0], 'QSM Answers' ), ENT_QUOTES ); } else { $decode_show_user_answer = htmlspecialchars_decode( mb_strtoupper( $show_user_answer ), ENT_QUOTES ); - $decode_single_user_answer = mb_strtoupper( $mlwQuizMasterNext->pluginHelper->qsm_language_support( $single_answer[0], 'answer-' . $single_answer[0], 'QSM Answers' ) ); + $decode_single_user_answer = mb_strtoupper( htmlspecialchars_decode( $mlwQuizMasterNext->pluginHelper->qsm_language_support( $single_answer[0], 'answer-' . $single_answer[0], 'QSM Answers' ), ENT_QUOTES ) ); } if ( $decode_show_user_answer == $decode_single_user_answer ) {