Skip to content

Commit

Permalink
5773 add decode to fail/pass feedback and instrucions
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Gay committed Mar 15, 2017
1 parent 5674187 commit 2f914e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mods/_standard/tests/view_results.php 100644 → 100755
Expand Up @@ -136,10 +136,10 @@
// display pass feedback for passed students
elseif (($passscore<>0 && $my_score>=$passscore) ||
($passpercent<>0 && ($my_score/$this_total*100)>=$passpercent))
echo '<span style="color:green">' . htmlspecialchars($passfeedback, ENT_QUOTES) . '</span>';
echo '<span style="color:green">' . htmlspecialchars_decode($passfeedback, ENT_QUOTES) . '</span>';
// otherwise, display fail feedback
elseif ($passscore<>0)
echo '<span style="color:red">' . htmlspecialchars($failfeedback, ENT_QUOTES) . '</span>';
echo '<span style="color:red">' . htmlspecialchars_decode($failfeedback, ENT_QUOTES) . '</span>';
?>
</h3>
</div>
Expand All @@ -148,7 +148,7 @@
<div style="background-color: #f3f3f3; padding: 5px 10px; margin: 0px; border-top: 1px solid">
<strong><?php echo _AT('instructions'); ?></strong>
</div>
<div class="row" style="padding-bottom: 20px"><?php echo $row['instructions']; ?></div>
<div class="row" style="padding-bottom: 20px"><?php echo htmlspecialchars_decode($row['instructions']); ?></div>
<?php endif; ?>

<?php
Expand All @@ -175,7 +175,7 @@
</a>
</legend>
<div class="row">
<?php echo $row['remedial_content']; ?>
<?php echo htmlspecialchars_decode($row['remedial_content']); ?>
</div>
</fieldset>
<?php
Expand Down

0 comments on commit 2f914e4

Please sign in to comment.