mirror of
https://github.com/friendica/friendica
synced 2024-12-23 07:20:15 +00:00
facebook plugin: convert html entities
This commit is contained in:
parent
c6b28ee5ed
commit
d609e75b07
1 changed files with 1 additions and 0 deletions
|
@ -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