I notice that every time an ampersand is entered, it is changed to & in source view, even though I have tried to disable html entities by using the following settings:
Is there a setting I've missed or something?
FCKConfig.ProcessHTMLEntities = false; FCKConfig.HtmlEncodeOutput = false; FCKConfig.ForceSimpleAmpersand = false;
Is there a setting I've missed or something?
Re: How can I disable "&" becoming "&
Re: How can I disable "&" becoming "&
I store the textfield data in a database, then escape the text when outputting to browsers. The same data can also be output as XML, which currently throws errors when importing to Google Base because of the "&" instead of "&".
I think the option to disable & should be added as you shouldn't always presume the data will be output in a certain way.
I believe it's better to store "raw" data in a database, then escape as necessary on output.
Do you know whereabouts in the code I might be able to hack this?
Re: How can I disable "&" becoming "&
FCK editor doesn't output just about anything (that's what Notepad is for) - it's an XHTML editor, so the assumption is pretty clear here.
If you do need other formats, you need to look into parsing XHTML using such technologies as XSL, DOM or SAX and output whatever format you want.
Re: How can I disable "&" becoming "&
A fair point!
I'll also look into these options...thanks.
Re: How can I disable "&" becoming "&
is there any other solution? as I cannot control what comes back from the DB as we use FCK in IBM WCM 6.0.1.3