modified rule to escape ampersands