I'm loading HTML into a editor and some tags are being stripped out that should not be.
example, if I load the following HTML into an editor it removes the spans with color settings but keeps the strong tags: (note: what I'm loading was made with the same editor settings)
<p>This is a test with the new editor <strong><span style="background-color:#FF0000">This is a test edit with teh new editor</span></strong><br /> </p
Now I know the editor (AFC) will strip out tags for features not available in the current editor, but in this case the editor does have the features enabled (like I said it was made with an editor having the same settings)
CKEDITOR.config.toolbar = [
['Styles','Format','Font','FontSize'],
['Bold','Italic','Underline','StrikeThrough','-','Undo','Redo','-','Cut','Copy','Paste','Find','Replace','-','Outdent','Indent','-','Print'],
['NumberedList','BulletedList','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['TextColor','BGColor']
] ;
After setdata() of the above HTML, if I do a getdata() I get:
<p>This is a test with the new editor <strong>This is a test edit with teh new editor</strong><br />
Bug or me?

Maybe it's due to the "
Maybe it's due to the " tags instead of normal double-quote characters?
Try doing a quickie replace on your content prior to the CKE call, see if that makes a difference.
Yup!
Thank you for pointing my head at the right thing. Turns out theres an older portion of code that is tryoing to do some type of cleaning to the comments. I think this is where the " is coming from. Working on changing/fixing/smashing it now and will update if that was indeed the issue (as I think it is).
This was indeed the issue. Made for a lovely afternoon