There are repellents you can buy at your local garden center. Liquid Fence is a brand that has a dog/cat repellent. Please note though that although the product works really well on cats, dogs are very individualistic in their tastes and your dogs might actually like it. You just have to try to see. Also, your only other option is to keep the dogs away from the plants with a low border fence.