facebook plugin: convert html entities

This commit is contained in:
Friendika 2011-02-20 19:51:00 -08:00
parent c6b28ee5ed
commit d609e75b07
1 changed files with 1 additions and 0 deletions

View File

@ -194,6 +194,7 @@ function facebook_post_hook(&$a,&$b) {
$msg = preg_replace("/\[img\](.+?)\[\/img\]/is", t('Image: ') . '$1',$msg); $msg = preg_replace("/\[img\](.+?)\[\/img\]/is", t('Image: ') . '$1',$msg);
$msg = trim(strip_tags(bbcode($msg))); $msg = trim(strip_tags(bbcode($msg)));
$msg = html_entity_decode($msg,ENT_QUOTES,'UTF-8');
if (strlen($msg) > FACEBOOK_MAXPOSTLEN) { if (strlen($msg) > FACEBOOK_MAXPOSTLEN) {
$shortlink = ""; $shortlink = "";