diff --git a/webgui/include/ajax/functions/AdminClientRealms.php b/webgui/include/ajax/functions/AdminClientRealms.php
index ac24f306adeaf593ee8b59c60f58632cc49c8948..41c4ae332bb136e4bbb63d1c83b97104aea22069 100644
--- a/webgui/include/ajax/functions/AdminClientRealms.php
+++ b/webgui/include/ajax/functions/AdminClientRealms.php
@@ -63,7 +63,7 @@ function getAdminClientRealms($params) {
 		$item = array();
 
 		$item['ID'] = $row->id;
-		$item['Name'] = $row->name;
+		$item['Name'] = htmlspecialchars($row->name);
 
 		# Push this row onto array
 		array_push($resultArray,$item);