toggleOperationContent to escape resource name before querying for node