firstChild; $style = $first->getAttribute( 'style' ); if ( $block['attrs']['style']['border'] ?? null ) { $styles['border-width'] = $block['attrs']['style']['border']['width'] ?? null; $styles['border-style'] = $block['attrs']['style']['border']['style'] ?? null; $styles['border-color'] = $block['attrs']['style']['border']['color'] ?? null; $styles['border-radius'] = $block['attrs']['style']['border']['radius'] ?? null; } $first->setAttribute( 'style', ( $style ? $style . ';' : '') . css_array_to_string( $styles ) ); return str_replace( [ '

' ], [ '' ], $dom->saveHTML() ); }