public function test_entities_and_slashes()
 {
     $string = 'There\'s something missing here & here';
     $expected = "There's something missing here & here";
     $this->assertEquals($expected, ppp_entities_and_slashes($string));
 }
/**
 * Given a message, sends a tweet
 * @param  string $message The Text to share as the body of the tweet
 * @return object          The Results from the Twitter API
 */
function ppp_send_tweet($message, $post_id, $use_media = false)
{
    global $ppp_twitter_oauth;
    return apply_filters('ppp_twitter_tweet', $ppp_twitter_oauth->ppp_tweet(ppp_entities_and_slashes($message), $use_media));
}
/**
 * Share a post to Facebook
 * @param  string $link        The link to Share
 * @param  string $message     The message attached to the link
 * @return array               The results array from the API
 */
function ppp_fb_share($link, $message, $picture)
{
    global $ppp_facebook_oauth;
    return $ppp_facebook_oauth->ppp_fb_share_link($link, ppp_entities_and_slashes($message), $picture);
}
/**
 * Share a post to Linkedin
 * @param  string $title       The Title of the Linkedin Post
 * @param  string $description The Description of the post
 * @param  string $link        The URL to the post
 * @param  mixed  $media       False for no media, url to the image if exists
 * @return array               The results array from the API
 */
function ppp_li_share($title, $description, $link, $media)
{
    global $ppp_linkedin_oauth;
    $args = array('title' => ppp_entities_and_slashes($title), 'description' => ppp_entities_and_slashes($description), 'submitted-url' => $link, 'submitted-image-url' => $media);
    return $ppp_linkedin_oauth->ppp_linkedin_share($args);
}