LPS-43332 Escape missing places and don't escape already escaped places in plugins