Closed veselints closed 6 years ago
Label HTML helper in the Scheduler Edit template does not render special characters. Instead, it displays their code number.
This is a regression bug introduced with R1 2018 release.
Insert the following helper on the Scheduler Edit template view: @(Html.LabelFor(model => model.Title, "Probe durchgeführt"))
@(Html.LabelFor(model => model.Title, "Probe durchgeführt"))
When opening the edit form the above will be displayed as: <label for="Title">Probe durchgef&\#252;hrt</label>
<label for="Title">Probe durchgef&\#252;hrt</label>
In the Scheduler Editor template it will be generated as: \u003clabel for=\"Title\"\u003eProbe durchgef\u0026\\\\\\#252;hrt\u003c/label\u003e
\u003clabel for=\"Title\"\u003eProbe durchgef\u0026\\\\\\#252;hrt\u003c/label\u003e
A workarownd would be to use the <label> element, instead of the HTML helper: <label for="Title">Probe durchgeführt</label>
<label>
<label for="Title">Probe durchgeführt</label>
The issue was introduced by this one so it needs to be retested too.
Bug report
Label HTML helper in the Scheduler Edit template does not render special characters. Instead, it displays their code number.
This is a regression bug introduced with R1 2018 release.
Reproduction of the problem
Insert the following helper on the Scheduler Edit template view:
@(Html.LabelFor(model => model.Title, "Probe durchgeführt"))
When opening the edit form the above will be displayed as:
<label for="Title">Probe durchgef&\#252;hrt</label>
In the Scheduler Editor template it will be generated as:
\u003clabel for=\"Title\"\u003eProbe durchgef\u0026\\\\\\#252;hrt\u003c/label\u003e
Environment