Text field is not accepting HTML entry properly