|
|
@@ -97,10 +97,7 @@
|
|
|
<div class="form-group">
|
|
|
<div class="col-md-12">
|
|
|
<label style="color:#aaa">文章内容</label>
|
|
|
-<!-- <textarea type="text/plain" id="myEditor" style="width:100%;">{$news['content']}</textarea>-->
|
|
|
- <textarea type="text/plain" id="myEditor" style="width:100%;">
|
|
|
- {php}echo htmlspecialchars_decode($news['content'], ENT_QUOTES | ENT_HTML5);{/php}
|
|
|
-</textarea>
|
|
|
+ <textarea type="text/plain" id="myEditor" style="width:100%;">{$news['content']}</textarea>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
@@ -234,15 +231,7 @@
|
|
|
list.title = $('#title').val();/* 标题 */
|
|
|
list.author = $('#author').val();/* 作者 */
|
|
|
list.image_input = $('#image_input').val();/* 图片 */
|
|
|
- // list.content = getContent();/* 内容 */
|
|
|
- list.content = UM.getEditor('myEditor').body.innerHTML;
|
|
|
- // list.content = list.content
|
|
|
- // .replace(/\\"/g, '"')
|
|
|
- // .replace(/\\\//g, '/')
|
|
|
- // .replace(/\\'/g, "'")
|
|
|
- // .replace(/\\\\/g, "\\")
|
|
|
- // .replace(/"/g, '"')
|
|
|
- // .replace(/&/g, '&');
|
|
|
+ list.content = getContent();/* 内容 */
|
|
|
list.synopsis = $('#synopsis').val();/* 简介 */
|
|
|
list.url = $('#url').val();/* 原文链接 */
|
|
|
list.id = $('#id').val();/* 原文链接 */
|