Today a user pointed out a problem with how CKEditor encodes submitted text. If a user enters a value like:
The resulting HTML is:
If I unhtmlentities($ck_text) and display on a page - no problem. The resulting text matches what the user entered. Often times users are required to copy and paste bits of data into a separate notification system. When pasting the copied text, the note is clipped at the first user-entered > or < sign:
Is there a way to set up CKEditor to parse greater/less than signs differently, so they don't eventually wind up being interpreted as HTML?
The serum level was >0.1234, which was higher than expected.
The resulting HTML is:
<p>The serum level was &gt;0.1234, which was higher than expected.</p>
If I unhtmlentities($ck_text) and display on a page - no problem. The resulting text matches what the user entered. Often times users are required to copy and paste bits of data into a separate notification system. When pasting the copied text, the note is clipped at the first user-entered > or < sign:
The serum level was
Is there a way to set up CKEditor to parse greater/less than signs differently, so they don't eventually wind up being interpreted as HTML?