htmlEncode

Encodes HTML characters to entities.

Example

<script>
var value = kendo.htmlEncode("<span>Hello</span>");
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(value);
</script>

Parameters

value String

The string that needs to be HTML encoded.

Returns

String The encoded string.

In this article