docs: public static String escape(String string, Document.OutputSettings out) {
          if (string == null)
              return "";
          StringBuilder accum = StringUtil.borrowBuilder();
          try {
              escape(accum, string, out, false, false, false);
          } catch (IOException e) {
              throw new SerializationException(e); // doesn't happen
          }
          return StringUtil.releaseBuilder(accum);
      }