private String formatLI(String content, boolean ordered) {
	String buf = "";
	int idx = 0;
	int aStart = 0;
	int aEnd = -5;
	int i=0;
	while (content.indexOf("<li>", idx) != -1) {
	    i++;
	    aStart = content.indexOf("<li>", idx);
	    buf += content.substring(aEnd+5, aStart);
	    aEnd = content.indexOf("</li>", aStart);
	    
	    buf += "$b{"+(ordered?i+".":"")+"} "+content.substring(aStart+4, aEnd)+"\n";

	    idx = aEnd;
	}
	buf += content.substring(aEnd+5);
	return buf;
    }