extract_blocks_content function

Extract the content parts of blocks