Goose\Modules\Formatters\OutputFormatter::removeSmallParagraphs PHP Method

removeSmallParagraphs() private method

private removeSmallParagraphs ( DOMWrap\Element $topNode )
$topNode DOMWrap\Element
    private function removeSmallParagraphs(Element $topNode)
    {
        $nodes = $topNode->find('p, strong');
        foreach ($nodes as $node) {
            if (mb_strlen(Helper::textNormalise($node->text())) < 25) {
                $node->remove();
            }
        }
    }