diff --git a/app/Libraries/HistoryUtils.php b/app/Libraries/HistoryUtils.php
index 49a396474f4e..c886d68231f2 100644
--- a/app/Libraries/HistoryUtils.php
+++ b/app/Libraries/HistoryUtils.php
@@ -162,7 +162,7 @@ class HistoryUtils
$icon = '';
if ($item->client_id) {
$link = url('/clients/' . $item->client_id);
- $name = $item->client_name;
+ $name = e($item->client_name);
$buttonLink = url('/invoices/create/' . $item->client_id);
$button = '