How would I translate this PHP statement: $domain = str_ireplace('www.', '', parse_url($url, PHP_URL_HOST));
to a smarty function such as:{$url|str_ireplace:'something':'etc'}
I want to print $domain in this case. $url is a smarty variable that is set for a certain URL. How do I do this?