1
0
Fork 0

facebook plugin: convert html entities

This commit is contained in:
Friendika 2011-02-20 19:51:00 -08:00
parent c6b28ee5ed
commit d609e75b07

View file

@ -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 = "";