Less sign (<) is not displayed when binding kendo to html
I have a td element:
<td data-bind="html: name"></td>
I have data in javascript like
var name = '@Html.Raw(HttpUtility.JavaScriptStringEncode(Model.Name))';
Model name <tagor < tag.
In javascript it looks like this: \u003ctagand \u003c tag.
In the first case, I do not see <tageverything after him.
In the second case, I see < tag.
Why does the first case not work?
+4
1 answer
, Element.innerHTML , , . , , HTML ( innerHTML kendo html).
<tag, :
<td data-bind="text: name"></td>
Model.Name HTML, , .
+4