问题描述
具有使用FCKeditor的形式.我可以输入格式,但是当我带回FCKeditor中的内容时,它也会显示原始的html格式语法. IE.
& lt; p& amp; amp; amp;问题:是否缺少我使用格式设置文本格式而不是与文本一起显示格式语法的设置?谢谢兰迪
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><p>&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?thanksRandy
推荐答案
我不知道您是否正在使用ASP.net C#,但如果是,则先导入
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;
这两件事,然后从fckeditor检索值,然后使用
these two things and then where you are retrieving your value from fckeditor then use
string fckContent = Regex.Replace(FCKEditorID.value, @"<(.|\n)*?>", string.Empty);
这篇关于FCKeditor:显示格式化字符以及文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!