Changed page saving to use htmlentities()