A municipality may, by ordinance, prohibit the sale and use of sparklers on public property.