I have the code below that is dynamically populated and I would like to give an emphasis (bold, italic) in the " (From xx / xx / xxxx to xx / xx / xxxx) "but if I try to put a tag inside the <option>
the system does not understand.
<selectasp-for="Ciclo" class="form-control" onchange="on();consultaResumo(this.value);">
@foreach (var item in Model.ListCiclos)
{
if (item.CiCodigo == Model.CicloAtual.CiCodigo)
{
<option value="@item.CiCodigo" id="ciclo1" selected>@item.CiCodigo.Substring(4, 2)/@item.CiCodigo.Substring(0, 4) (De @item.CiDtIni.Substring(0, 10) até @item.CiDtFim.Substring(0, 10))</option>
}
else
{
<option value="@item.CiCodigo" id="ciclo2">@item.CiCodigo.Substring(4, 2)/@item.CiCodigo.Substring(0, 4) (De @item.CiDtIni.Substring(0, 10) até @item.CiDtFim.Substring(0, 10))</option>
}
}
</select>