“At least 7 dead and 48 wounded in terror attack,” the president wrote on his Twitter account soon after the attack, “and Mayor of London says there is ‘no reason to be alarmed!’”

He then repeated that criticism in even stronger terms.

London Bridge Terror Attack Show all 16 1 /16 London Bridge Terror Attack London Bridge Terror Attack Armed police on Borough High Street as police are dealing with a "major incident" at London Bridge PA London Bridge Terror Attack Armed Police talk to members of the public outside London Bridge Hospital as police are dealing with a "major incident" at London Bridge PA London Bridge Terror Attack Police Officers outside the Barrowboy and Banker Public House on Borough High Street as police are dealing with a "major incident" at London Bridge PA London Bridge Terror Attack Armed Police talk to members of the public outside London Bridge Hospital as police are dealing with a "major incident" at London Bridge PA London Bridge Terror Attack Armed police on Borough High Street as police deal with a 'major incident' at London Bridge PA London Bridge Terror Attack Emergency services near the scene of the incident Screengrab London Bridge Terror Attack People run down Borough High Street as police are dealing with a "major incident" at London Bridge Reuters London Bridge Terror Attack Emergency services arrive at the scene near Borough market at London Bridge Carl Court/Getty Images London Bridge Terror Attack Emergency personnel on London Bridge as police are dealing with a "major incident" at London Bridge PA London Bridge Terror Attack Police sniffer dogs on London Bridge as police are dealing with a "major incident" at London Bridge PA London Bridge Terror Attack A second helicopter lands on London Bridge as police are responding to three incidents in the capital, amid reports that a vehicle collided with pedestrians on London Bridge, Scotland Yard said. Officers are dealing with reports of stabbings in Borough Market, where armed officers attended and shots were fired. They are also at an incident in the Vauxhall area PA London Bridge Terror Attack Police attend to an incident on London Bridge in London REUTERS London Bridge Terror Attack Police attend to an incident on London Bridge in London, Britain Reuters London Bridge Terror Attack A police officer escorts members of the public to safety at London Bridge Getty Images London Bridge Terror Attack Police attend to an incident on London Bridge in London, Britain Reuters London Bridge Terror Attack Police attend to an incident near London Bridge in London, Britain Reuters

"Pathetic excuse by London Mayor Sadiq Khan who had to think fast on his "no reason to be alarmed" statement," he wrote. "MSM is working hard to sell it!"

But Mr Trump's criticism is based on a quotation entirely removed from its context. He appears to be confused about what happened in part because Fox News repeated the same short quote but without the full remarks from the mayor of London.

What Mr Khan actually said was that there is no reason to be alarmed about the increased police presence on the streets after the attack.

“My message to Londoners and visitors to our great city is to be calm and vigilant today," Mr Khan said. "You will see an increased police presence today, including armed officers and uniformed officers.

"There is no reason to be alarmed by this. We are the safest global city in the world. You saw last night as a consequence of our planning, our preparation, the rehearsals that take place, the swift response from the emergency services tackling the terrorists and also helping the injured.”

Mr Khan has shrugged off the intense and repeated criticism from Mr Trump. A spokesperson said the mayor has "more important things to do than respond to Donald Trump’s ill-informed tweet that deliberately takes out of context his remarks".