Environment:
- Erlang/OTP 20
- Elixir 1.5.1
- Phoenix 1.3.0
- Phoenix HTML 2.10.4
- Phoenix Slime 0.9.0
- Slime 0.16.0
- System 4.12.8-1-ARCH
Expected behaviour
String interpolation in input value works like without interpolation, e.g.
- foo = "bar"
- form_ok = Phoenix.HTML.Tag.content_tag(:form) do
input name="test" value="val"
p "#{foo}"
= form_ok
Renders
<p>bar</p>
<form>
<input name="test" value="val">
</form>
Actual behaviour
- foo = "bar"
- form_not_ok = Phoenix.HTML.Tag.content_tag(:form) do
input name="test" value="#{foo}"
p "#{foo}"
= form_not_ok
Renders
<input name="test"<p>bar</p>
<form>
<input name="test" value="bar">
</form>
Environment:
Expected behaviour
String interpolation in input value works like without interpolation, e.g.
Renders
Actual behaviour
Renders