2
OK. I was looking for a little bit.
This topic suggested to me what the problem.
I write posts in CKeditor and would like to show some pice of HTML code. Paste the code in the editor and special characters are
converted to HTML Entities automatically. Everything is ok until I open the note for editing: HTML Entities are
converted back again to html tags, so it are rendered by the editor.
Preg_replace in the method htmlSpecialChars of MyTextSanitizer class proved to be the culprit. It changes & back to the &. This is useful when using DHTMLeditor or plain text to see the normal texarea tags or quote (instead of HTML Entities). But it spoils the WYSIWYG editors work in some cases.
Are there any work around this?