Better location handling (HTML filter)