The class has been moved from the package.
org.apache.commons. lang3
in
org.apache.commons. text
You can easily replace the obsolete library:
In your build.gradle:
implementation 'org.apache.commons:commons-text:1.6'
And in your class using StringEscapeUtils make sure you import the correct class:
import org.apache.commons.text.StringEscapeUtils;
1.6 is currently the most recent version (last check out is May 2, 2019), but you can check the versions on maven: https://mvnrepository.com/artifact/org.apache.commons/commons-text
source share