We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nil
""
Phoenix.HTML.Form.options_for_select([x: "x", empty: ""], "") #=> <option value="x">x</option> #=> <option selected value="">empty</option> # vs Phoenix.HTML.Form.options_for_select([x: "x", empty: ""], nil) #=> <option value="x">x</option> #=> <option value="">empty</option>
This discrepancy comes from the fact that we use html_escape to normalize values, and it it's different for nil and "".
html_escape
The text was updated successfully, but these errors were encountered:
3f23221
No branches or pull requests
This discrepancy comes from the fact that we use
html_escape
to normalize values, and it it's different fornil
and""
.The text was updated successfully, but these errors were encountered: