sanitizeElementData( $image['caption'] ); return $image; }, $data['images'] ); } else { $caption = $data['caption'] ?? ''; $data['caption'] = $this->sanitizeElementData( $caption ); } return $data; } }