Skip to content

Commit

Permalink
Fix quiz question html in quiz summary (#2737)
Browse files Browse the repository at this point in the history
* Fixing formatting of quiz summary question.

* Add changelog.
  • Loading branch information
brianhogg authored Aug 20, 2024
1 parent 67cfed1 commit c31bce8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changelogs/fix_quiz-question-html-in-quiz-summary.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
significance: patch
type: fixed
links:
- "#2734"
entry: Fix display of quiz question when viewing the quiz results if it contains
formatting.
2 changes: 1 addition & 1 deletion templates/quiz/results-attempt-questions-list.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<header class="llms-quiz-attempt-question-header">
<a class="toggle-answer" href="#">

<h3 class="llms-question-title"><?php echo esc_html( $quiz_question->get_question( 'plain' ) ); ?></h3>
<h3 class="llms-question-title"><?php echo wp_kses_post( $quiz_question->get_question( 'plain' ) ); ?></h3>

<?php if ( $quiz_question->get( 'points' ) ) : ?>
<span class="llms-points">
Expand Down

0 comments on commit c31bce8

Please sign in to comment.