Title: twitter popup using html code for link
Last modified: August 22, 2016

---

# twitter popup using html code for link

 *  Resolved [Asjad](https://wordpress.org/support/users/asjad/)
 * (@asjad)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/twitter-popup-using-html-code-for-link/)
 * Hi,
    First of all thank you for your plugin. It is working great on my site. 
   I am having a slight issue with the twitter link button if a title contains an
   apostrophe. When the popout window open it shows html code instead of the apostrophe.
   Would it be possible to change this? [http://www.aldridgedentists.co.uk/caring-childs-teeth/](http://www.aldridgedentists.co.uk/caring-childs-teeth/)
 * [https://wordpress.org/plugins/wp-social-sharing/](https://wordpress.org/plugins/wp-social-sharing/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Arjun Jain](https://wordpress.org/support/users/arjunjain08/)
 * (@arjunjain08)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/twitter-popup-using-html-code-for-link/#post-5473031)
 * Hi,
 * I will fix this in next version. You can fix this by updating the plugins/wp-
   social-sharing/includes/class-public.php file. First take the backup and than
   edit the file
    Change line no: 108 to 111
 * Current code:
 *     ```
       case 'l':
       if(in_array('linkedin', $social_options)){?><a <?php echo $loadjs;?> rel="external nofollow" class="<?php echo $ssbutton_linkedin;?>" href="http://www.linkedin.com/shareArticle?mini=true&url=<?php echo substr($url,0,1024);?>&title=<?php echo substr($title,0,200);?>" target="_blank" ><?php echo $linkedin_text; ?></a><?php
       } break;
       ```
   
 * New Code:
 *     ```
       case 'l':
       if(in_array('linkedin', $social_options)){?><a <?php echo $loadjs;?> rel="external nofollow" class="<?php echo $ssbutton_linkedin;?>" href="http://www.linkedin.com/shareArticle?mini=true&url=<?php echo substr($url,0,1024);?>&title=<?php echo substr(urldecode($title),0,200);?>" target="_blank" ><?php echo $linkedin_text; ?></a><?php } break;
       ```
   
 *  Thread Starter [Asjad](https://wordpress.org/support/users/asjad/)
 * (@asjad)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/twitter-popup-using-html-code-for-link/#post-5473081)
 * Hi Thanks for your speedy reply.
 * I implemented the code and it fixed the linkedin share. I hadn’t realised that
   the issue was there with the linkedin share aswell.
 * I think you may have missed that the original issue was with the twitter share.
   Can you provide the code for that?
 *  Plugin Author [Arjun Jain](https://wordpress.org/support/users/arjunjain08/)
 * (@arjunjain08)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/twitter-popup-using-html-code-for-link/#post-5473117)
 * Please revert back the old changes and make only following changes:
 * Current Code.
    Line number: 62
 * `$title = urlencode( get_the_title() );`
 * New Code:
 * `$title = get_the_title();`
 *  Thread Starter [Asjad](https://wordpress.org/support/users/asjad/)
 * (@asjad)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/twitter-popup-using-html-code-for-link/#post-5473158)
 * Perfect!
    Thank you for taking the time to sort out my problem.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘twitter popup using html code for link’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-social-sharing_21405a.svg)
 * [WP Social Sharing](https://wordpress.org/plugins/wp-social-sharing/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-social-sharing/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-social-sharing/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-social-sharing/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-social-sharing/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Asjad](https://wordpress.org/support/users/asjad/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/twitter-popup-using-html-code-for-link/#post-5473158)
 * Status: resolved