Java escape HTML - string replace slow?

后端 未结 8 587
长情又很酷
长情又很酷 2021-01-22 17:34

I have a Java application that makes heavy use of a large file, to read, process and give through to SolrEmbeddedServer (http://lucene.apache.org/solr/).

One of the func

8条回答
  •  悲哀的现实
    2021-01-22 18:09

    For the casual reader, there is a new player in the Html escape field: unbescape.

    An unescape operation on HTML code can be done like this:

    final String unescapedText = HtmlEscape.unescapeHtml(escapedText); 
    

提交回复
热议问题