protected void appendHTML(final StringBuilder sbuf,final char ch){
switch (ch) {
case '<':
    sbuf.append("&lt;");
  break;
case '>':
sbuf.append("&gt;");
break;
case '&':
sbuf.append("&amp;");
break;
default :
sbuf.append(ch);
break;
}
}

protected void appendHTML ( final StringBuilder sbuf , final char ch ) { switch ( ch ) { case '<' : sbuf . append ( "&lt;" ) ; break ; case '>' : sbuf . append ( "&gt;" ) ; break ; case '&' : sbuf . append ( "&amp;" ) ; break ; default : sbuf . append ( ch ) ; break ; } }
append a character to a buffer , escaping html meta - characters when needed .
