. . "A city can only impose such regulations as it deems necessary to protect the health and safety of its residents ??? including those living in tents, Jacoby said." . . .