FCKeditor: displays formative characters along with text

have a form using FCKeditor. I can enter with formatting, but when I return what I put in FCKeditor, it also displays the syntax of the raw html format. I.E.

<p> & l; p & gt; & amp; Question: is there a parameter that I am missing that uses formatting to format text instead of displaying formatting syntax along with text? thanks Randy

0
source share
1 answer

I don't know if you are using ASP.net C # or not, but if so, then import first

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

these two things, and then when you extract your value from fckeditor, use

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

Source: https://habr.com/ru/post/1756652/


All Articles