added html escaping to documents