Hi,
I'm using FCKEditor 2.6.4 with FCKEditor.NET in an ASP.NET website. The website contains technical content and I want to display XML code in the article I'm creating on the website. I'm having problems with the following:
<attr>test</attr>
I enter this into the editor and when I click the source I see that the text is encoded correctly by the editor:
<p><attr>test</attr></p>
The problem comes when I try to save the page to the database. My server side code is:
Dim html As String = FCKeditor1.Value
I would expect the Value to be the same as when I clicked the "source" tab in the editor, but it actually decodes the XML tags, returning the following to the "html" variable:
<p><attr>test</attr></p>
When this gets rendered on the web page, the whole text will be invisible.
Can anyone offer any advice to help fix this problem?
Many Thanks,
David
I'm using FCKEditor 2.6.4 with FCKEditor.NET in an ASP.NET website. The website contains technical content and I want to display XML code in the article I'm creating on the website. I'm having problems with the following:
<attr>test</attr>
I enter this into the editor and when I click the source I see that the text is encoded correctly by the editor:
<p><attr>test</attr></p>
The problem comes when I try to save the page to the database. My server side code is:
Dim html As String = FCKeditor1.Value
I would expect the Value to be the same as when I clicked the "source" tab in the editor, but it actually decodes the XML tags, returning the following to the "html" variable:
<p><attr>test</attr></p>
When this gets rendered on the web page, the whole text will be invisible.
Can anyone offer any advice to help fix this problem?
Many Thanks,
David