replaced getBlocks method of htmlprocessor with version customized for our purposes