How to get the html so its not encoded?
- by Dejan.S
hi. I am getting the value of a fckeditor with javascript to show in a dialog as preview. Now I want it to show the html tags like I input them but instead it shows me this
<p><div>test</div></p>
that is <div>test</div>
I use this following code
function test() {
var oEditor = FCKeditorAPI.GetInstance('FCKeditor1');
var pageValue = oEditor.GetHTML(true);
alert(pageValue);
}
I have tried to change settings like
FCKConfig.HtmlEncodeOutput = false;
FCKConfig.ProcessHTMLEntities = true;
FCKConfig.FormatSource = false;
No luck with that. I am getting a little frustrated with this problem now.
Anybody got a idea why?