I have the tinymce -control as a WYSIWYG-Editior in my asp.net page.
When I have e.g. a Text in Bold, after the Postback it is shown as
\"
Change the init function and set encoding to an empty string.
<script type="text/javascript">
tinyMCE.init({
mode: "textareas",
theme: "simple",
encoding: ""
});
</script>
This is default setting, and worked in my case. See documentation on this page http://www.tinymce.com/wiki.php/Configuration3x:encoding
Step 1: in TinyMCE Configuration use
encoding: "xml",
Step 2: in Java Script after init the TinyMCE use 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 Server code, when setting the value of the text area , decode the text first For example in ASP.net use
textarea.text = HttpUtility.HtmlDecode(Source)