diff --git a/index.php b/index.php
index eb7a653..1a58d9b 100644
--- a/index.php
+++ b/index.php
@@ -27,9 +27,9 @@
//while($res = mysql_fetch_array($result)) { // mysql_fetch_array is deprecated, we need to use mysqli_fetch_array
while($res = mysqli_fetch_array($result)) {
echo "
";
- echo "| ".$res['name']." | ";
- echo "".$res['age']." | ";
- echo "".$res['email']." | ";
+ echo "".htmlspecialchars($res['name'], ENT_QUOTES)." | ";
+ echo "".htmlspecialchars($res['age'], ENT_QUOTES)." | ";
+ echo "".htmlspecialchars($res['email'], ENT_QUOTES)." | ";
echo "Edit | Delete | ";
}
?>