A deadly plot by Islamic fundamentalists for a bloody confrontation with the English Defence League was inspired by "freely available extremist material", a judge has said.
Six men were jailed at the Old Bailey after travelling to the rally in Dewsbury, West Yorkshire, in June last year armed with an arsenal of weapons including two shotguns, swords, knives, a nail bomb and a partially-assembled pipe bomb.
Judge Nicholas Hilliard QC told the men: "How was it that you became involved in a crime of this gravity? At least part of the answer to that question must come in the tide of apparently freely available extremist material in which most of you had immersed yourselves."
Jewel Uddin, 27, Omar Mohammed Khan, 31, Mohammed Hasseen, 24, Anzal Hussain, 25, Mohammed Saud, 23, and Zohaib Ahmed, 22, who are all from the West Midlands, admitted planning the attack at a hearing on April 30.
Khan, Uddin and Ahmed were jailed for 19-and-a-half years with an extended licence period of five years, and the other three were given jail terms of 18 years and nine months and an extended licence period of five years.
EDL leader Tommy Robinson and his deputy Kevin Carroll called out "God save the Queen" from the public gallery at the end of the hearing. A woman broke down in tears, while supporters of the defendants shouted "Allahu Akbar".
The judge said the extremist material was "not difficult either to obtain or share". He said: "In this case, it can only have served to reinforce the defendants' resolve to behave in the hideous way that was planned".
All the men will serve at least two-thirds of the jail terms before they can be considered for parole.
All except Hasseen travelled to Dewsbury where an EDL rally was taking place on June 30 last year, ready to cause mass injuries and deaths. The gang's plan failed only because the event finished earlier than expected - they arrived at around 4pm when it was over shortly after 2pm.
Judge Hilliard said: "There is no reason to suppose that a further attempt may not have been made in the future had the defendants not been apprehended. I find it inconceivable that your resolve would have evaporated."