public static String toHTML(List<Article> articles, Category catActive) {
StringBuffer buf;
+ int i;
buf = new StringBuffer();
buf.append("<!DOCTYPE html>\n");
appendMenu(buf, catActive);
- for (Article e: articles)
+ i = 0;
+ for (Article e: articles) {
append(buf, e);
+ if (i == 100)
+ break;
+ else
+ i++;
+ }
buf.append("</body>\n");
buf.append("</html>\n");