diff --git a/includes/html/common/outages.inc.php b/includes/html/common/outages.inc.php
index b8574dcf69..947a8f28f0 100644
--- a/includes/html/common/outages.inc.php
+++ b/includes/html/common/outages.inc.php
@@ -39,8 +39,8 @@ var outages_grid = $("#outages").bootgrid({
{
return {
device: ' . (empty($vars['device']) ? 'null' : (int) $vars['device']) . ',
- to: "' . addcslashes($vars['to'], '"') . '",
- from: "' . addcslashes($vars['from'], '"') . '",
+ to: "' . htmlspecialchars($vars['to']) . '",
+ from: "' . htmlspecialchars($vars['from']) . '",
};
},
url: "' . url('/ajax/table/outages') . '"