Encode value stored in input attribute. Otherwise chars may get stripped, like new lines.