org.apache.commons.lang3.StringEscapeUtils的使用
StringEscapeUtils在org.apache.commons.lang3包下,可以方便的对html等东西进行转义
StringEscapeUtils.unescapeHtml3与StringEscapeUtils.unescapeHtml4的区别在于unescapeHtml4可对更多位的html进行转义,如以下例子:
String a = " (>^&omeg...
原创
2019-11-21 21:37:36 ·
3771 阅读 ·
0 评论