From 5ab949ca5508b59b2e9586ceb133c35886a552f0 Mon Sep 17 00:00:00 2001 From: Ololbu Date: Sat, 4 Mar 2023 20:12:46 +0500 Subject: [PATCH] [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 --- bridges/FicbookBridge.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bridges/FicbookBridge.php b/bridges/FicbookBridge.php index 2a245d4e..98288514 100644 --- a/bridges/FicbookBridge.php +++ b/bridges/FicbookBridge.php @@ -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", '
', $content->find('#content', 0)->innertext); } $this->items[] = $item;