Opened 18 years ago
Closed 18 years ago
#438 closed Bug (invalid)
Reconstituting > entity when re-parsing output
Reported by: | Peter Davis | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | FCKeditor 2.4.2 |
Keywords: | Cc: |
Description ¶
Given a line in the editor :-
The equation small<big
The editor will correctly convert the < to an entity > if this line is then re-parsed by the editor, as in a wiki, when the above page is edited, the entity is reconstituted where the document incorrectly becomes
The equation small
The source editor reveals that the following has occurred
<p>The equation small</p> <p><big></big></p>

Change History (5)
comment:1 follow-up: 2 Changed 18 years ago by
Keywords: | Pending WorksForMe added; wiki removed |
---|---|
Milestone: | FCKeditor 2.4.3 |
Priority: | High → Normal |
comment:2 follow-up: 3 Changed 18 years ago by
Replying to alfonsoml:
Could you please give detailed steps to reproduce?
Could it be just a problem in your integration?
The problem can be reproduced using _samples/html/example02.html.
With a text editor, edit the textarea to read
small<large
Then try
small < large
In the first example "large" vanishes.
comment:3 Changed 18 years ago by
Replying to fsdev:
The problem can be reproduced using _samples/html/example02.html.
With a text editor, edit the textarea to read
small<large
That's wrong, the proper escaping for a textarea would be small&gt;large.
comment:5 Changed 18 years ago by
Keywords: | Pending WorksForMe removed |
---|---|
Resolution: | → invalid |
Status: | new → closed |
You have to escape the content in a textarea, and every server language will have the proper call that takes care of all the issues.
If you don't escape then if the content has the html "</textarea>" then that would close the textarea ahead of time. So you have to escape < and > but you must also escape & because of the problem that you had: the browser thinks that your > is an escaped >

Could you please give detailed steps to reproduce?
Could it be just a problem in your integration?