Reject orphaned > and } in XJSText