Skip to content

Commit

Permalink
Merge pull request #92 from warksit/warksit-dont-escape-message
Browse files Browse the repository at this point in the history
Don't Escape Message
  • Loading branch information
edvinaskrucas committed May 18, 2019
2 parents c027071 + 2f23f3c commit 65deec7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Krucas/Notification/Message.php
Expand Up @@ -257,8 +257,7 @@ public function render()
if (is_null($this->getMessage())) {
return '';
}
$message = htmlspecialchars($this->getMessage(), ENT_QUOTES, null, false);
return str_replace([':message', ':type'], [$message, $this->getType()], $this->getFormat());
return str_replace([':message', ':type'], [$this->getMessage(), $this->getType()], $this->getFormat());
}

/**
Expand Down

0 comments on commit 65deec7

Please sign in to comment.