extTagToDOM( $extArgs, '', $src, [ 'wrapperTag' => 'span', 'parseOpts' => [ 'extTag' => 'blockquote', ], ], ); } public function getInnerWikitext(ParsoidExtensionAPI $extApi, \DOMElement $dom) { $wikiText = ''; foreach($dom->childNodes as $child){ if($child instanceof \DOMText){ $wikiText .= $child->nodeValue; } else { $wikiText .= $extApi->domToWikitext([], $child); } } return $wikiText; } public function domToWikitext(ParsoidExtensionAPI $extApi, \DOMElement $node, bool $wrapperUnmodified): string { $innerCode = $this->getInnerWikitext($extApi, $node); return "\n{$innerCode}\n"; } }