Javascript jQuery post()和CKEDITOR

Javascript jQuery post()和CKEDITOR,javascript,php,jquery,html,post,Javascript,Php,Jquery,Html,Post,我正在尝试将jQuery post()与表单一起使用。其中一个文本由CKeditor以HTML的形式返回,当jQuery发布该文本时,它已被弃用。 示例文本: Shirin Ahmed, the newly freed Iranian hostage in the ceasefire deal of Homs last week, says she considers herself the luckiest hostage ever since she was released from ca

我正在尝试将jQuery post()与表单一起使用。其中一个文本由CKeditor以HTML的形式返回,当jQuery发布该文本时,它已被弃用。 示例文本:

Shirin Ahmed, the newly freed Iranian hostage in the ceasefire deal of Homs last week, says she considers herself the luckiest hostage ever since she was released from captivity by the Liwa al-Tawhid brigade at the Bab al-Salameh border crossing with Turkey two months ago.

Ahmed, 30, was caught equipped with hidden camera and recording devices under her clothes where she was claiming her intention to visit the Shiite shrines in Aleppo province.
CKEditor生成的结果如下所示

<p>Shirin Ahmed, the newly freed Iranian hostage in the ceasefire deal of Homs last week, says she considers herself the luckiest hostage ever since she was released from captivity by the Liwa al-Tawhid brigade at the Bab al-Salameh border crossing with Turkey two months ago.</p>

<p>&nbsp;</p>

<p>Ahmed, 30, was caught equipped with hidden camera and recording devices under her clothes where she was claiming her intention to visit the Shiite shrines in Aleppo province.</p>

<p>&nbsp;</p>
我只得到
叙利亚
的帖子

有什么建议吗

我的代码如下:

<form id="doAddPost" >
    <textarea rows="50" class="ckeditor" id="art_text" required name="art_text" cols="78" placeholder="Art Contents"></textarea>
    <input type=submit value=add>
</form>
<script>
$(document).ready(function() {
    $("form#doAddPost").on("submit",function(event){
        var art_text = $('textarea#art_text').val();
        var dataString = 'art_text=' + art_text;
        $.post("./Scripts/adminDoAddPost.php", dataString, function (data) {
            $('.add_result').html(data).fadeIn(800);
        });
        return false;
    });
});
</script>

$(文档).ready(函数(){
$(“表格#doAddPost”)。在(“提交”,功能(事件){
var art_text=$('textarea#art_text').val();
var dataString='art_text='+art_text;
$.post(“./Scripts/adminDoAddPost.php”),数据字符串,函数(数据){
$('.add_result').html(data).fadeIn(800);
});
返回false;
});
});

在使用
post
之前尝试
escape(“您的文本”)
您的文本可能存在更新元素中编辑器值的问题,请参阅链接
<form id="doAddPost" >
    <textarea rows="50" class="ckeditor" id="art_text" required name="art_text" cols="78" placeholder="Art Contents"></textarea>
    <input type=submit value=add>
</form>
<script>
$(document).ready(function() {
    $("form#doAddPost").on("submit",function(event){
        var art_text = $('textarea#art_text').val();
        var dataString = 'art_text=' + art_text;
        $.post("./Scripts/adminDoAddPost.php", dataString, function (data) {
            $('.add_result').html(data).fadeIn(800);
        });
        return false;
    });
});
</script>