Sanitization

This commit is contained in:
2024-05-24 12:24:07 +02:00
parent 36a0480cc6
commit f394538776
3 changed files with 7 additions and 7 deletions
+4 -4
View File
@@ -1,11 +1,11 @@
<div class="col">
<div class="card h-100">
<div class="card h-100 shadow-sm">
<div class="card-header">
<h5 class="card-title lh-base text-truncate"><?= $comment->title ?></h5>
<h6 class="card-subtitle mb-2 text-muted"><?= $comment->name ?></h6>
<h5 class="card-title lh-base text-truncate"><?= htmlspecialchars($comment->title) ?></h5>
<h6 class="card-subtitle mb-2 text-muted"><?= htmlspecialchars($comment->name) ?></h6>
</div>
<div class="card-body">
<p class="card-text"><?= $comment->comment ?></p>
<p class="card-text"><?= nl2br(htmlspecialchars($comment->comment)) ?></p>
</div>
<div class="card-footer">
<small class="text-muted">