[wp-trac] [WordPress Trac] #2912: HTML editor has a problem with
WordPress Trac
wp-trac at lists.automattic.com
Wed Jul 5 17:30:42 GMT 2006
#2912: HTML editor has a problem with special characters conversion
----------------------------+-----------------------------------------------
Reporter: tenpura | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.1
Component: Administration | Version: 2.1
Severity: normal | Keywords:
----------------------------+-----------------------------------------------
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'''[[BR]]
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'''[[BR]]
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'''[[BR]]
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.
--
Ticket URL: <http://trac.wordpress.org/ticket/2912>
WordPress Trac <http://wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list