protected void addComment ( String commentText , Writer out ) throws IOException { StringBuilder sb = new StringBuilder ( "<script type=\"text/javascript\">/* " ) ; sb . append ( commentText ) . append ( " */</script>" ) . append ( "\n" ) ; out . write ( sb . toString ( ) ) ; }
Adds an HTML comment to the output stream .