Part on Escaping Chars finished
This commit is contained in:
parent
c0aeac2632
commit
a597943b45
3 changed files with 8 additions and 3 deletions
|
|
@ -6,7 +6,7 @@
|
|||
<p class="mb-6">
|
||||
<a href="/notes" class="text-blue-500 hover:underline">go back</a>
|
||||
</p>
|
||||
<p><?= $note['body'] ?></p>
|
||||
<p><?= htmlspecialchars($note['body']) ?></p>
|
||||
</div>
|
||||
</main>
|
||||
<?php require ('partials/footer.php') ?>
|
||||
|
|
@ -7,7 +7,7 @@
|
|||
<?php foreach ($notes as $note) : ?>
|
||||
<li>
|
||||
<a href="/note?id=<?= $note['id'] ?>" class="text-blue-500 hover:underline">
|
||||
<?= $note['body'] ?>
|
||||
<?= htmlspecialchars($note['body']) ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue