serialization.custom Function

Define custom serialization for the editable content. The method accepts a single parameter as a string and is expected to return a string.

Example

<textarea id="editor"></textarea>
<script>
$("#editor").kendoEditor({
    serialization: {
        custom: function(html) {
            return html.replace(/(<\/?)b(\s?)/, "$1strong$2");
        }
    }
});
</script>
In this article