protected function removeTagContent(Node $body, $position, $pattern): void
    {
        if ($body->getNode($position) instanceof TextNode) {
            $positionBody = $body->getNode($position)->getAttribute('data');
            $positionBody = preg_replace($pattern, '', $positionBody);

            $body->getNode($position)->setAttribute('data', $positionBody);
        }
    }