[FacebookBridge] Fix media origin info is not inside a tag
References #912
This commit is contained in:
parent
bf91f106b4
commit
cb91d9cce8
1 changed files with 6 additions and 1 deletions
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue