Entity Code 치환1 [Java] 특수문자, Entity Code 치환(StringEscapeUtils 클래스 사용) import org.apache.commons.lang3.StringEscapeUtils; public void changeHtml() { // 특수문자를 Entity Code로 치환 String str = "&&&&"; str = StringEscapeUtils.escapeHtml4(str); // Entity Code를 특수문자로 치환 String entityStr = "&&&&"; entityStr = StringEscapeUtils.unescapeHtml4(entityStr); } 🙏 참조 :: https://kudolove.tistory.com/m/1350 https://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang.. 2021. 9. 11. 이전 1 다음