src/View/Parsers/ShortcodeParser.php
protected function replaceMarkerWithContent($node, $tag)
    {
        $content = $this->getShortcodeReplacementText($tag);

        if ($content) {
            /** @var HTMLValue $parsed */
            $parsed = HTMLValue::create($content);
            $body = $parsed->getBody();
            if ($body) {
                $this->insertListAfter($body->childNodes, $node);
            }
        }

        $this->removeNode($node);
    }
protected function replaceMarkerWithContent($node, $tag)
    {
        $content = $this->getShortcodeReplacementText($tag);

        if ($content) {
            /** @var HTMLValue $parsed */
            $parsed = HTMLValue::create($content);
            $body = $parsed->getBody();
            if ($body) {
                $this->insertListAfter($body->childNodes, $node);
            }
        }

        $this->removeNode($node);
    }
protected function replaceMarkerWithContent ( $ node , $ tag ) { $ content = $ this -> getShortcodeReplacementText ( $ tag ) ; if ( $ content ) { /** @var HTMLValue $parsed */ $ parsed = HTMLValue :: create ( $ content ) ; $ body = $ parsed -> getBody ( ) ; if ( $ body ) { $ this -> insertListAfter ( $ body -> childNodes , $ node ) ; } } $ this -> removeNode ( $ node ) ; }
Given a node with represents a shortcode marker and some information about the shortcode, call the
shortcode handler & replace the marker with the actual content

@param DOMElement $node
@param array $tag
Given a node with represents a shortcode marker and some information about the shortcode call the shortcode handler & replace the marker with the actual content