Class StringEscapeUtils.Builder

java.lang.Object
org.apache.commons.text.StringEscapeUtils.Builder
Enclosing class:
StringEscapeUtils

public static final class StringEscapeUtils.Builder
extends Object

Convenience wrapper for StringBuilder providing escape methods.

Example:

 new Builder(ESCAPE_HTML4)
      .append("<p>")
      .escape("This is paragraph 1 and special chars like & get escaped.")
      .append("</p><p>")
      .escape("This is paragraph 2 & more...")
      .append("</p>")
      .toString()