Browse Source

facebook plugin: convert html entities

pull/1/head
Friendika 12 years ago
parent
commit
d609e75b07
  1. 1
      addon/facebook/facebook.php

1
addon/facebook/facebook.php

@ -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…
Cancel
Save