FCKeditor: displays the formating characters along with text

微笑、不失礼 提交于 2019-12-12 04:06:50

问题


have a form that uses FCKeditor. I can input with formatting, but when I bring back what I put in FCKeditor it also displays the raw html format syntax. I.E.

<p>&lt;p&gt;&amp; Question: is there a setting I'm missing that uses the formatting to format the text instead of displaying the formatting syntax along with the text? thanks Randy


回答1:


i dont know whether you are using ASP.net C# or not but if yes then first import

using System.Text.RegularExpressions;
using FredCK.FCKeditorV2;

these two things and then where you are retrieving your value from fckeditor then use

string fckContent = Regex.Replace(FCKEditorID.value, @"<(.|\n)*?>", string.Empty);


来源:https://stackoverflow.com/questions/3503655/fckeditor-displays-the-formating-characters-along-with-text

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!