code: public static void emit(String src, JspWriter out) throws IOException {
          int end = src.length();
          int from = 0;
          for (int to = from; to < end; to++) {
              String escape = getEscape(src.charAt(to));
              if (escape != null) {
                  if (to != from) {
                      out.write(src, from, to - from);
                  }
                  out.write(escape);
                  from = to + 1;
              }
          }
          if (from != end) {
              out.write(src, from, end - from);
          }
      }
docs: Emit escaped content into the specified JSPWriter.
  
  @param src the string to escape; must not be null
  @param out the JspWriter to emit to
  @throws IOException if there was a problem emitting the content