Step 1: in TinyMCE configuration use
encoding: "xml",
Step 2: in Java Script after initialization, TinyMCE uses this code, where "textarea.RichText" is the class selector for the text area
tinymce.init(TMCEconfig); // Fix Html Decodeing $('textarea.RichText').each(function () { var $this = $(this); var x = $this.text(); $this.html(x) });
Step 3: in the server code, when setting the value of the text area, first decode the text For example, in ASP.net use
textarea.text = HttpUtility.HtmlDecode(Source)
Ahmed fouad
source share