Topic-icon Ampersand in article title is translated to "& a m p ;" when tweeted

Active Subscriptions:

None
7 years 7 months ago - 7 years 7 months ago #59547 by scochi
My configuration automatically tweets new articles. As a test, I saved a (K2) article with the title "Testing social rebroadcast. Are we tweeting & posting to Facebook?". The tweet which resulted had the text "Testing social rebroadcast. Are we tweeting & posting to Facebook?" The attached screen shot shows the resulting tweet.

How can this be resolved?
Last edit: 7 years 7 months ago by scochi.
The topic has been locked.
Support Specialist
This will involve a code change. I have a quick workaround for you.

In /libraries/sourcecoast/openGraphPlugin.php, around line 505, replace this line
$message = $this->getAutopostMessage($objectType, $articleId);
with
$message = htmlspecialchars_decode($this->getAutopostMessage($objectType, $articleId));

It's only been tested minimally, so please tell me if any new problems arise. I will add an issue to the tracker to add this in our next release.

-Melissa
The topic has been locked.
Active Subscriptions:

None
First, many thanks for the rapid response. Second, the code change has been installed and seems to be working as it should. I'll revert back to you if there are any issues.
The topic has been locked.
Support Specialist
Thanks for letting me know. I've added an issue to our tracker.
The topic has been locked.