I couldn\'t find any explanation why StringEscapeUtils was deprecated from Apache Lang3 v3.7.
https://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/l
Do below steps
Add below dependency to your pom.xml (if using maven)
Import correct package as below
import org.apache.commons.text.StringEscapeUtils;