)#is', $html, -1, PREG_SPLIT_DELIM_CAPTURE );
if ( false === $parts ) {
return $html;
}
$drawn = false;
$ids = array();
foreach ( $parts as $i => $part ) {
if ( 1 === $i % 2 || ! str_contains( $part, '#is',
static function ( array $m ) use ( &$drawn, &$ids ): string {
$out = self::shell( $m[0] );
if ( $out !== $m[0] ) {
$drawn = true;
if ( 1 === preg_match( '#^