facebook plugin: convert html entities
This commit is contained in:
parent
c6b28ee5ed
commit
d609e75b07
|
@ -194,6 +194,7 @@ function facebook_post_hook(&$a,&$b) {
|
|||
$msg = preg_replace("/\[img\](.+?)\[\/img\]/is", t('Image: ') . '$1',$msg);
|
||||
|
||||
$msg = trim(strip_tags(bbcode($msg)));
|
||||
$msg = html_entity_decode($msg,ENT_QUOTES,'UTF-8');
|
||||
|
||||
if (strlen($msg) > FACEBOOK_MAXPOSTLEN) {
|
||||
$shortlink = "";
|
||||
|
|
Loading…
Reference in a new issue