I am taking data from my database to show in a FCKeditor area -- this data may contain [] or single or double quotes. I need to wrap it in something when I assign the value, e.g.,
oFCKeditor.Value = "This is a ..."
and this will fail if the delimiters I choose appear in the data.
I'm sure thre is a sumple solution, but I can't think waht it might be. Any help?
Thanks,
oFCKeditor.Value = "This is a ..."
and this will fail if the delimiters I choose appear in the data.
I'm sure thre is a sumple solution, but I can't think waht it might be. Any help?
Thanks,
RE: delimiters conflicts
RE: delimiters conflicts
I think I have resolved my problem by converting all delimiters in my data to character entities, and then using square brackets (which aren't used in html markup) in my code to set the value.
Not sure if this is the best way of going about it, but it seems to work.
Thanks again
Reg
RE: delimiters conflicts
oFCKeditor.value = "This string has \"quotes\"" ;
But I didn't hear before about square brakets as delimiters, so I don't know what you are using.