Good day,
For XHR, the answer is formed:
echo "FCKeditorAPI.GetInstance('FCKeditor_DESC').SetHTML('$DESC');";
Here $ DESC is arbitrary text from MySql. On the client side, data from XHR is executed directly:
eval(data);
Just on this line the error appears: Uncaught SyntaxError: Unexpected token ILLEGAL. htmlspecialchars () gave no result. The error appears only in Chrome; FF, IE and Opera ate the text normally.