@Override
      public void handleError(String errorMsg, int pos) {
        //since <body> tag may be skipped for this parser
        if (errorMsg.startsWith("start.missing body")) return;

        // style attribute can be processed by StyleTagHandler
        if (errorMsg.startsWith("invalid.tagatt style")) return;

        LOG.error("Cannot parse HTML: [" + htmlString + "]", errorMsg);
      }
@Override
      public void handleError(String errorMsg, int pos)