
Quoting
flyingron
Your understanding is by and large wrong. The provision for "safety" is limited to items that make the property itself fail to meet the habitability standards. There is no general provision providing for an escape for "harassment." The only ones that apply are is the landlord himself is harassing you or that you are the victim of stalking, domestic violence, or sexual assault.
The landlord is by and large not responsible for obnoxious neighbors.
The good news is that the landlord is obligated to try and rent the property to someone else, and you're only obligated to pay for the loss of rent until a new tenant is found.