I’m using CKEditor for my back-end application.
I’ve installed as stated on the official documentation (pretty simple).
Nevertheless, when trying to add this text for instance (I can copy/paste it from SO on this post, its exactly the same):
You don’t just want people to hear you. You want them to listen.
Barraged as we are with news clips and op-eds that get linked,
blogged, posted, tweeted and re-tweeted on a minute-to-minute basis,
that’s a lot to ask for. Countless voices across the nation drown each
other out in the echo chamber of modern media. Would-be revolutions
can wind up footnotes on corporate memos, and reputations can die or
reincarnate in the time it takes to post a Facebook status.For businesses and agenda-setters worldwide, this all amounts to one
important question: “How do we rise above the noise and really make an
impact?”That’s where we come in.
Drawing from a wealth of public relations experience in political,
advocacy and corporate arenas, N** * Communications spearheads
creative and downright effective communications campaigns that
infiltrate national conversations and direct them to our clients’
goals. Synchronizing the buzz means harmonizing the noise. Suddenly
you’re listened to, not just heard.We service clients in both the nonprofit and for-profit spheres,
leading projects which range from political campaign strategy to
executive speechwriting. We’ve worked for CEOs, elected officials,
political candidates from the presidential to local level, and
progressive organizations from 527 groups to major national unions.
I’ve got something like this:
<p>
</p>
<p 0px="" color:="" font-family:="" font-size:="" hear="" helvetica="" just="" line-height:="" p="" people="" style="margin: 0px 0px 10px; text-align: justify; font-size: 16px; color: rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 20px; " t="" them="" to="" want="" you="" you.="">
</p>
<p 0px="" color:="" font-family:="" font-size:="" hear="" helvetica="" just="" line-height:="" p="" people="" style="margin: 0px 0px 10px; " t="" them="" to="" want="" you="" you.="">
Barraged as we are with news clips and op-eds that get linked, blogged, posted, tweeted and re-tweeted on a minute-to-minute basis, that's a lot to ask for. Countless voices across the nation drown each other out in the echochamber of modern media. Would-be revolutions can wind up footnotes on corporate memos, and reputations can die or reincarnate in the time it takes to post a Facebook status.</p>
<p 0px="" above="" agenda-setters="" all="" amounts="" an="" and="" businesses="" color:="" do="" font-family:="" font-size:="" for="" helvetica="" how="" important="" line-height:="" make="" noise="" one="" p="" question:="" really="" rise="" style="margin: 0px 0px 10px; " the="" this="" to="" we="">
That's where we come in.</p>
<p 0px="" a="" advocacy="" and="" buzz="" campaigns="" color:="" communications="" conversations="" corporate="" creative="" direct="" downright="" drawing="" effective="" experience="" font-family:="" font-size:="" from="" goals.="" harmonizing="" heights="" helvetica="" in="" infiltrate="" just="" line-height:="" listened="" means="" national="" new="" noise.="" not="" of="" our="" p="" public="" re="" relations="" spearheads="" style="margin: 0px 0px 10px; " suddenly="" synchronizing="" that="" the="" them="" to="" wealth="">
We service clients in both the nonprofit and for-profit spheres, leading projects which range from political campaign strategy to executive speechwriting. We've worked for CEOs, elected officials, political candidates from the presidential to local level, and progressive organizations from 527 groups to major national unions.</p>
Which is totally garbage and unusable, so that’s what I get in the source (if I click on source) and on the database if I decide to save that text. It definitively seems to come from CKEditor itself .
Where does this problem come from?
I found a solution to my problem.
It was because the post variable I had was passed into a trim and xss filtering pre process functions before being added to the database.
That what caused such a weird behavior.