[wp-trac] [WordPress Trac] #14259: ASCII encoded characters are decoded when switching between HTML & Visual editors
WordPress Trac
wp-trac at lists.automattic.com
Sat Jul 10 12:09:33 UTC 2010
#14259: ASCII encoded characters are decoded when switching between HTML & Visual
editors
--------------------------+-------------------------------------------------
Reporter: Gnopps | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 3.0
Severity: minor | Keywords: ASCII-codes, Visual editor
--------------------------+-------------------------------------------------
''If ASCII-codes instead of characters are entered in the HTML editor and
then saved the resulting page is also stored with these codes. However, if
the codes are entered first in the HTML editor and then you switch to
Visual editor and back to HTML editor the codes have been decoded and
instead their representative characters are shown and stored in the
resulting code.
''
'''Example'''
In HTML-editor enter
{{{
<a href="mailto:a@b.com?subject="
title="">AB</a>
}}}
and save. Show the page created and in its source you will see the ASCII-
codes above have been saved just as they were entered.
Now with the codes visible switch to the Visual editor and then switch
back to HTML editor. You will now see that the ASCII-codes are gone and
instead you will see
{{{
<a href="mailto:a at b.com?subject=">AB</a>
}}}
The bug here is that the editor(s) transform the ASCII-codes instead of
saving them as they are typed.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14259>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list