Too much sun is no good—for people or plants

People avoid sunburn by applying sunscreen. But how do plants avoid getting burnt?