[FacebookBridge] Fix media origin info is not inside a tag

References #912
This commit is contained in:
logmanoriginal 2018-11-08 19:23:52 +01:00
parent bf91f106b4
commit cb91d9cce8

View file

@ -590,9 +590,14 @@ EOD;
} }
} }
// Change origin tag for embedded media from div to paragraph
foreach($content->find('._59tj') as $subject) {
$subject->outertext = '<p>' . $subject->innertext . '</p>';
}
// Change title tag for embedded media from anchor to paragraph // Change title tag for embedded media from anchor to paragraph
foreach($content->find('._3n1k a') as $anchor) { foreach($content->find('._3n1k a') as $anchor) {
$anchor->outertext = '<p>' . $anchor->innertext . '</p>'; $anchor->outertext = '<p>' . $anchor->innertext . '</p>';
} }
$content = preg_replace( $content = preg_replace(