Skip to content

Commit

Permalink
Reinstate escaping HTML in gap fill questions
Browse files Browse the repository at this point in the history
  • Loading branch information
donnapep committed Nov 15, 2018
1 parent e153b44 commit 6a62a87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/single-quiz/question-type-gap-fill.php
Expand Up @@ -26,7 +26,7 @@

<span class="gapfill-answer-pre">

<?php echo wp_kses_post( apply_filters( 'sensei_answer_text', $question_data[ 'gapfill_pre' ] ) ); ?>
<?php echo wp_kses_post( apply_filters( 'sensei_answer_text', esc_html( $question_data[ 'gapfill_pre' ] ) ) ); ?>

<input type="text" id="<?php echo esc_attr( 'question_' . $question_data[ 'ID' ] ); ?>"
name="<?php echo esc_attr( 'sensei_question[' . $question_data[ 'ID' ] . ']' ); ?>"
Expand All @@ -35,7 +35,7 @@ class="gapfill-answer-gap" />

<span class="gapfill-answer-post">

<?php echo wp_kses_post( apply_filters( 'sensei_answer_text', $question_data[ 'gapfill_post' ] ) ); ?>
<?php echo wp_kses_post( apply_filters( 'sensei_answer_text', esc_html( $question_data[ 'gapfill_post' ] ) ) ); ?>

</span>

Expand Down

0 comments on commit 6a62a87

Please sign in to comment.