New to Kendo UI for jQuery? Download free 30-day trial

Set Encoded Special Characters as Editor Values


Product Progress® Kendo UI® Editor for jQuery
Operating System All
Browser All
Preferred Language JavaScript


How can I set the encoded special characters as Editor values and display them decoded?


Prior to passing them as a parameter to the value method of the Editor, decode the encoded special characters.

<textarea id="editor"></textarea>

    var editor = $("#editor").data("kendoEditor");
    var encodedString = "&lt;p&gt;Paragraph with a &gt; special character inside.&lt;/p&gt";
    var parser = new DOMParser;
    var dom = parser.parseFromString(
        '<!doctype html><body>' + encodedString,
    var decodedString = dom.body.textContent;

In this article