If you look at the content feed on http://minnesotatransplant.wordpress.com/feed/ for example - you'll see a pile of quite poor share and social images at the bottom of each item's content:encoded.
Does anyone know how to get rid of these or programmatically remove with PHP?
For anyone who's interested, I ended up doing...
$whereIsNaughtyString = strpos($contentwords, "<a rel=\"nofollow\"");
$contentTrimmed = substr($contentwords, 0, $whereIsNaughtyString);
Which got rid of all the stuff.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.