Skip to content
Permalink
Browse files

Encode special HTML characters

  • Loading branch information
john committed Apr 24, 2017
1 parent 84fd2e5 commit 2202b45911b80d07c62e8c292fdbc8b2fde1aa47
Showing with 4 additions and 4 deletions.
  1. +4 −4 public/messages.php
@@ -43,11 +43,11 @@ class="material-icons">check
class="material-icons red-text">fiber_new
</i>
<?php } ?>
<?php echo $message->sender()->username ?>
<?php echo htmlspecialchars($message->sender()->username) ?>
</div>
<div class="collapsible-body">
<span>
<?php echo $message->message ?>
<?php echo htmlspecialchars($message->message) ?>
</span>
</div>
</li>
@@ -64,11 +64,11 @@ class="material-icons red-text">fiber_new
<?php } else { ?>
<i class="material-icons">arrow_forward</i>
<?php } ?>
<?php echo $message->receiver()->username ?>
<?php echo htmlspecialchars($message->receiver()->username) ?>
</div>
<div class="collapsible-body">
<span>
<?php echo $message->message ?>
<?php echo htmlspecialchars($message->message) ?>
</span>
</div>
</li>

0 comments on commit 2202b45

Please sign in to comment.
You can’t perform that action at this time.