Experiencing an odd issue when using @Html.Glass().Editable()
inside the value property of an input
element. My markup is:
<input type="submit" name="search" value="@Html.Glass().Editable(Model, x => x.CTA_Text)" class="btn btn-large btn-solid color-buttercup form-element find-event-search-button" />
However when the page loads in the Experience Editor, this renders an actual input element inside of the value property of the input, instead of just a string, which is what usually happens when I use Editable()
:
<input type="submit" name="search" value="<input id='fld_C80D3EEEFE5345C5BCB17FB8ED4D6203_FDE27EC865D34C2A95238FF1091EA131_en_1_3fe281910f0e48b19ab2431af39551f1_5700' class='scFieldValue' name='fld_C80D3EEEFE5345C5BCB17FB8ED4D6203_FDE27EC865D34C2A95238FF1091EA131_en_1_3fe281910f0e48b19ab2431af39551f1_5700' type='hidden' value=" search"="">