Goose\Modules\Formatters\OutputFormatter::replaceTagsWithText PHP Метод

replaceTagsWithText() приватный Метод

... with whatever text is inside them
private replaceTagsWithText ( DOMWrap\Element $topNode )
$topNode DOMWrap\Element
    private function replaceTagsWithText(Element $topNode)
    {
        if (!empty($topNode)) {
            $items = $topNode->find('b, strong, i');
            foreach ($items as $item) {
                $item->replaceWith(new Text($this->getTagCleanedText($item)));
            }
        }
    }