encodedValue

Gets the HTML encoded value of the editor.

Returns

String The value of the Editor as HTML encoded string.

Example

<textarea id="editor"></textarea>
<script>
$("#editor").kendoEditor({ value: "<p>foo</p>" });
var editor = $("#editor").data("kendoEditor");
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(editor.encodedValue()); // logs "&lt;p&gt;foo&lt;/p&gt;"
</script>
In this article