1
0
Fork 0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-03-31 05:43:53 +03:00

[FB2Bridge] Do not strip <h3> and <h4> ()

Do not strip <h3> and <h4>. Output looks better when they are retained. See attached.
This commit is contained in:
triatic 2018-09-21 19:19:22 +01:00 committed by LogMANOriginal
parent eb30038d6b
commit db24f55c86

View file

@ -109,7 +109,7 @@ EOD;
}
//Remove html nodes, keep only img, links, basic formatting
$content = strip_tags($content, '<a><img><i><u><br><p>');
$content = strip_tags($content, '<a><img><i><u><br><p><h3><h4>');
//Adapt link hrefs: convert relative links into absolute links and bypass external link redirection
$content = preg_replace_callback('/ href=\"([^"]+)\"/i', $unescape_fb_link, $content);