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

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 //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 //Adapt link hrefs: convert relative links into absolute links and bypass external link redirection
$content = preg_replace_callback('/ href=\"([^"]+)\"/i', $unescape_fb_link, $content); $content = preg_replace_callback('/ href=\"([^"]+)\"/i', $unescape_fb_link, $content);