protected void getExceptionHTML(PrintWriter a, Throwable e) {
    if (e==null)
      return;
    else
    if (e instanceof TmplzException) {
      a.append(e.getMessage().replaceAll("<", "&lt;").replaceAll(">", "&gt;")+"\n");
      getExceptionHTML(a, e.getCause());
    }
    else
      StackTracer.recurseStackTrace(e, a);
  }