Escape chars

This commit is contained in:
William 2022-02-09 12:51:30 +01:00
parent 843fc4ec33
commit e3e429e2ad
2 changed files with 8 additions and 0 deletions

View File

@ -14,6 +14,10 @@
</tr> </tr>
<?php <?php
foreach ($teams as $row) { foreach ($teams as $row) {
foreach ($row as $key => $value)
{
$row[$key] = htmlspecialchars($row[$key]);
}
echo '<tr>'; echo '<tr>';
echo "<td>{$row['LagNavn']}</td>"; echo "<td>{$row['LagNavn']}</td>";
echo "<td>{$row['Bedrift']}</td>"; echo "<td>{$row['Bedrift']}</td>";

View File

@ -13,6 +13,10 @@
</tr> </tr>
<?php <?php
foreach ($teams as $row) { foreach ($teams as $row) {
foreach ($row as $key => $value)
{
$row[$key] = htmlspecialchars($row[$key]);
}
echo '<tr>'; echo '<tr>';
echo "<td>{$row['LagNavn']}</td>"; echo "<td>{$row['LagNavn']}</td>";
echo "<td>{$row['Bedrift']}</td>"; echo "<td>{$row['Bedrift']}</td>";