mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-22 01:25:28 +03:00
[FicbookBridge] Fix new lines in content (#3278)
* [FicbookBridge] Fix new lines in content Sets `$stripRN` in `getSimpleHTMLDOMCached` to `false` and replace new line to `br` through `str_replace()`. * [FicbookBridge] Add space after comma
This commit is contained in:
parent
f3f98a117c
commit
5ab949ca55
1 changed files with 2 additions and 2 deletions
|
@ -135,8 +135,8 @@ class FicbookBridge extends BridgeAbstract
|
|||
];
|
||||
|
||||
if ($this->getInput('include_contents')) {
|
||||
$content = getSimpleHTMLDOMCached($item['uri']);
|
||||
$item['content'] = $content->find('#content', 0);
|
||||
$content = getSimpleHTMLDOMCached($item['uri'], 86400, [], [], true, true, DEFAULT_TARGET_CHARSET, false);
|
||||
$item['content'] = str_replace("\n", '<br>', $content->find('#content', 0)->innertext);
|
||||
}
|
||||
|
||||
$this->items[] = $item;
|
||||
|
|
Loading…
Reference in a new issue