hey guys,
<?php urlencode(the_title()); ?>
doesn’t take effect.
this is my entrie line of code:
<li><a href="https://wordpress.stackexchange.com/questions/14114/mailto:?subject=<?php urlencode(the_title()); ?>&body=<?php the_permalink(); ?>">e-mail</a></li>
I don’t want to have spaces in the_title(). Why does urlencode not work for me?