Is this what you mean?
By factoring the two polynomials, we get
Canceling, this will remain:
Then, we take the limit of the numerator. And divide it with the limit of the denominator.
Since the function is continuous, this counts as just substituting 1 to the values of x.
Therefore, the limit is 1.