#2912 closed defect (bug) (worksforme)
HTML editor has a problem with special characters conversion
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.1 |
Component: | TinyMCE | Keywords: | |
Focuses: | Cc: |
Description
For instance, if you upload a file with a title xxx'">< and send it to the editor with Linked to Page option, you will get inconsistent published results like below.
Firefox with visual rich editor
1st time, seems ok.
<a href="http://yoursite.com/wordpress/archives/1/xxx/" id="p7" rel="attachment" class="imagelink" title="xxx'"><"> <img src="http://yoursite.com/wordpress/wp-content/uploads/somefile.thumbnail.jpg" id="image7" alt="xxx'"><" /> </a>
2nd time (Simply go edit and save to republish the same thing), ">< are removed.
<a href="http://yoursite.com/wordpress/archives/1/xxx/" id="p7" rel="attachment" class="imagelink" title="xxx'"> <img src="http://yoursite.com/wordpress/wp-content/uploads/somefile.thumbnail.jpg" id="image7" alt="xxx'" /> </a>
Firefox without visual rich editor
bare single quote
<a id="p7" rel="attachment" class="imagelink" href="http://yoursite.com/wordpress/archives/1/xxx/" title="xxx'"><"> <img id="image7" src="http://yoursite.com/wordpress/wp-content/uploads/somefile.thumbnail.jpg" alt="xxx'"><" /> </a>
Opera without visual rich editor
broken
<a ID="p7" REL="attachment" CLASS="imagelink" HREF="http://yoursite.com/wordpress/archives/xxx/" ONCLICK="doPopup(7);return false;" TITLE="xxx'
I temporarily forbid html special characters for the file title to avoid this mess.
Change History (4)
Note: See
TracTickets for help on using
tickets.
I cant seem to be able to replicate in trunk