code: private String convertOutputToHtml(String content) {
  
          if (content.length() == 0) {
              return "";
          }
          StringBuilder buffer = new StringBuilder();
          for (String line : content.split("\n")) {
              buffer.append(CmsEncoder.escapeXml(line) + "<br>");
          }
          return buffer.toString();
      }
docs: Converts the text stream data to HTML form.
  
  @param content the content to convert
  @return the HTML version of the content