aşağıda belirttiğim kod boşluğu (-) ile replace etmiyor. kelime de değilde link'te boşluk oluşturuyor. örneğin link yapısı; /s/php-kodu/ yerine /s/php kodu/ oluyor. nasıl düzeltebilirim?
<?php $kodtag = explode(',',$v['tags']); foreach($xxtag as $kod){
echo '<a href="'.$settings['site_home_url'].'/s/'.sanitize_output(_clean($kod)).'/"><button style="margin-bottom: 10px;" type="button" class="btn btn-success">#'.str_replace('-', ' ', $kod).'</button></a> '; } ?>