Bug 4360 Template - cursor at wrong position
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateProposal.java
for (int i= 0; i != string.length(); i++) {
			char ch= string.charAt(i);
			
			switch (ch) {
				case '&':
					buffer.append("&amp;"); 
					break;
					
				case '<':
					buffer.append("&lt;"); 
					break;
				case '>':
					buffer.append("&gt;"); 
					break;
				case '\t':
					buffer.append("    "); 
					break;
				case '\n':
					buffer.append("<br>"); 
					break;
				default:
					buffer.append(ch);
					break;
			}
		}
		buffer.append("</pre>"); 
		return buffer.toString();
	}
}