forked from blallo/rss-bridge
Preserve br and p from Facebook post content
This commit is contained in:
parent
670d8f18cb
commit
9c1bedb33f
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ class FacebookBridge extends BridgeAbstract{
|
|||
$content = preg_replace('/(?i)><div class=\"_4l5([^>]+)>(.+?)<\/div>/i', '', $content);
|
||||
|
||||
//Remove html nodes, keep only img, links, basic formatting
|
||||
$content = strip_tags($content,'<a><img><i><u>');
|
||||
$content = strip_tags($content,'<a><img><i><u><br><p>');
|
||||
|
||||
//Adapt link hrefs: convert relative links into absolute links and bypass external link redirection
|
||||
$content = preg_replace_callback('/ href=\"([^"]+)\"/i', $unescape_fb_link, $content);
|
||||
|
|
Loading…
Reference in a new issue