A Muslim man who attacked a protestor burning a Koran outside the Turkish consulate in London has been spared jail.

Hamit Coskun, 51, shouted 'f*** Islam', 'Islam is religion of terrorism' and 'Koran is burning', as he held a flaming Islamic text aloft during a protest in west London on February 13.

Moussa Kadri then came out of a residential building and told Mr Coskun 'I'm going to kill you', before slashing at him with a knife.

Kadri later told police that he was protecting his religion, prosecutors said.

Judge Adam Hiddleston handed Kadri a 20-week prison sentence, suspended for 18 months, at Southwark Crown Court today.