diff --git a/bridges/FB2Bridge.php b/bridges/FB2Bridge.php index 8607cf50..cd4bb47f 100644 --- a/bridges/FB2Bridge.php +++ b/bridges/FB2Bridge.php @@ -114,6 +114,11 @@ EOD; $content->find('footer', 0)->innertext = ''; } + // Replace emoticon images by their textual representation (part of the span) + foreach($content->find('span[title*="emoticon"]') as $emoticon) { + $emoticon->innertext = $emoticon->find('span[aria-hidden="true"]', 0)->innertext; + } + //Remove html nodes, keep only img, links, basic formatting $content = strip_tags($content, '

');