消息分页，html转换
fix bugs for homework show page
avoid error when select a nil grades