A man who hit Britain's opposition leader Jeremy Corbyn on the head with an egg in an attack apparently provoked by the politician's stance on Brexit has been sentenced to 28 days in jail.
The case contrasts with that of an Australian teenager who earlier this month was released without charge pending further inquiries after smashing an egg on the head of a far-right senator in Melbourne.
In the British case closed circuit television footage showed John Murphy, 31, approach Corbyn at a Muslim community centre in London's Finsbury Park on March 3 and crack an egg on the side of his head.
- UK Prime Minister Theresa May battling to keep control of Brexit
- 1 million march against Brexit
- Anti-Brexit petition crashes UK goverment website
"Although Mr Corbyn was not seriously hurt, Murphy had come with a number of eggs that he could have used had he not been detained quickly," said Kevin Christie, District Crown Prosecutor at CPS London North.
Prosecutors said Murphy shouted "respect the vote", an apparent reference to the 2016 EU referendum result.
The attack occurred days after Corbyn, 69, had said his Labour party would support a second referendum if it could not get backing for its alternative Brexit plans.
Murphy, who pleaded guilty, was jailed for 28 days and made to pay a STG115 ($A215) victim surcharge.
"Whilst I am in a very public role, it is often very painful to see my wife, my sons and my wider family suffer deep stress because of my role and because of this attack upon me," Corbyn said in a statement read out in court.
The case contrasts with that of a Melbourne teenager who smashed an egg on the head of far-right independent Queensland Senator Fraser Anning on March 16 at a political event.
Will Connolly, 17, who has been dubbed "Egg Boy", was angry over Senator Anning's comments that Muslim immigration contributed to the 50 deaths in the Christchurch mosque terror attacks on March 15.
The teen was whacked in the face by Senator Anning then grappled to the ground by the senator's supporters.
He was interviewed then released by police without charge, pending further investigations.
Connolly later said his egging of Anning "was not the right thing to do" but his egg had since united people and helped raise tens of thousands of dollars for the mosque attack victims.