Tags are HTML encoded

Hey,

i want to display a certain tag when its related contents are shown. So far so good but i have trouble with the html ecoding. when i use this code:

  <?php if($tag = param('tag')): ?>
         <?= html($tag) ?>
  <?php endif ?>

something like this is displayed:

Tag%20Name

but it needs to be “Tag Name”

Pretty easy probably but cant find anything anywhere right now. Thaaanks!
J

If you have tags with special characters, e.g. white space, you have to urlencode() and urldecode() your tags.

Thanks!

urldecode($tag)