private String formatSearchResults(String content) {
	String buf = "";
	// clean up the contents so less content to go through (faster)
	content = content.substring(
		content.indexOf("<div class='searchresults'>"),
		content.indexOf("<div class=\"printfooter\">"));
	content = content.replaceAll("\\{", "");
	content = content.replaceAll("\\}", "");
	// Create each search section
	String[] h2 = new String[50];
	int idx = 0, cnt = 0;
	while (content.indexOf("<h2>", idx) != -1) {
	    int h2Start = content.indexOf("<h2>", idx);
	    int h2End = content.indexOf("</h2>", h2Start);
	    h2[cnt] = this.removeHtml.matcher(content.substring(h2Start, h2End)).replaceAll("");
	    idx = h2End;
	    cnt++;
	}
	// Get content for each section
	int idxHeader = 0;
	cnt = 0;
	while (content.indexOf("<ul class='mw-search-results'>", idxHeader) != -1) {
	    // Alot of abusing of indexOf cause faster than compiled regex
	    buf += "$size[14]{$b{"+h2[cnt]+":}}\n\n";
	    int ulStart = content.indexOf("<ul class='mw-search-results'>", idxHeader);
	    idxHeader = ulStart + 1;
	    String header = content.substring(ulStart, content.indexOf("</ul>", ulStart));

	    // for each search section create search items
	    int idxItem = header.indexOf("<li>");
	    while (header.indexOf("<li>", idxItem) != -1) {
		int liStart = header.indexOf("<li>", idxItem);
		int liEnd = header.indexOf("</li>", liStart);

		String itemcnt = header.substring(liStart, liEnd);
		int descStart = itemcnt.indexOf("<div");
		int descEnd = itemcnt.indexOf("</div");
		
		String desc = itemcnt.substring(descStart, descEnd);
		desc = this.removeHtml.matcher(desc).replaceAll("");
		desc = formatKeywords(desc);
		desc = formatSymbols(desc);
		String link = itemcnt.substring(itemcnt.indexOf("<a"),
			itemcnt.indexOf("</a>"));
		
		int linkidx = link.indexOf("href=\"");
		String title = this.removeHtml.matcher(link).replaceAll("");
		link = link.substring(linkidx, link.indexOf("\"", linkidx + 6)).replace("href=\"", "");
		
		buf += "$b{$u{$col[0,0,192]{$a["+ link + "]{" + title + "}}}}\n";
		buf += desc + "\n\n";
		
		idxItem = liEnd + 1;
	    }
	    cnt++;
	}
	return buf;
    }