fix(tags.php): url encode tag links
This commit is contained in:
parent
187c383804
commit
0368d5e8a5
3 changed files with 4 additions and 4 deletions
|
@ -7,7 +7,7 @@ function renderTags(array $tags): void {
|
|||
|
||||
foreach ($tags as $tag) {
|
||||
$slug = strtolower(trim($tag));
|
||||
echo '<a href="/tags/' . htmlspecialchars($slug) . '">#' . htmlspecialchars($slug) . '</a>';
|
||||
echo '<a href="/tags/' . rawurlencode($slug) . '">#' . htmlspecialchars($slug) . '</a>';
|
||||
}
|
||||
|
||||
echo '</div>';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue