)
				.replace(/&/g, '&amp;')
				.replace(/"/g, '&quot;')
				.replace(/'/g, '&#39;')
				.replace(/</g, '&lt;')
				.replace(/>/g, '&gt;');
	}	
	$(document).ready(function(){
		$('#addli').click(createli);
		$('#commit').submit(function(event){			
			event.preventDefault();
			var result = $('#result');
			var text = '<div class="commit sansserif">\n';
			text += '\t<h2 class="date">'+$(this.date).val()+'</h2>\n';
			text += '\t<h3 class="author">'+$(this.author).val()+' updated:</h3>\n';
	