The following code give me a link title with "%20" instead of spaces and adds "http://" before the title.
"user_url" is the link url.
"tagline" is the title text (e.g. "Lorem ipsum dolor sit amet, consectetur adipiscing elit...")
The output is: "http://Lorem&20ipsum&20dolor&20sit&20amet&20consectetur&20adipiscing&20elit"
What I want is just the clean text.
Any advice?
Here's the code:
<?php if( !empty( $current_author_profile->user_url ) ) {?>
<li><i class="fa fa-link"></i><a href="<?php echo esc_url( $current_author_profile->user_url );?>" target="_blank" title="<?php echo esc_url( $current_author_profile->tagline );?>"><?php echo docdirect_parse_url( $current_author_profile->user_url);?></a></li>
<?php }?>
Thanks! :)