[wp-trac] [WordPress Trac] #7131: Dashboard: unescaped & which
should be written as &
WordPress Trac
wp-trac at lists.automattic.com
Thu Jun 12 19:30:40 GMT 2008
#7131: Dashboard: unescaped & which should be written as &
---------------------+------------------------------------------------------
Reporter: hakre | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.5.2
Component: General | Version:
Severity: normal | Keywords:
---------------------+------------------------------------------------------
Titels of aggregated RSS Feeds are not properly output to the Browser. If
they containt the "&" Char for example, it is not written as "&".
Tidy Reports: "unescaped & which should be written as &"
I was not able to reproduce with 2.6 bleeding2, when using the same feed,
the <span class="post"> elements to not contain the text. only the <cite>
tags are left.
Looks like a bad made fix.
More Infos:
Cause:
The ampersand ("&") is a special character in HTML. It marks the beginning
of a entity, like " " for a non-breaking space.
In XHTML, a entity must also end with a semicolon (";"). For example
" "
Because this is so, any time a literal ampersand appears in a document, it
needs to be written as a character entity, "&". Ampersands commonly
appear in the query string of a URL, and need to be expressed as an entity
there.
Example - Normal Ampersand:
Good Smith & son
Good Smith & son
Example - Ampersand in a Query String:
Good <a href="http://www.domain.com/cgi?x=1&y=2">query string</a>
Good <a href="http://www.domain.com/cgi?x=1&y=2">query string</a>
Solution:
Please replace "&" with "&".
References:
* W3C entities: http://www.w3.org/TR/html4/sgml/entities.html
* WDG : http://www.htmlhelp.com/reference/html40/entities/
* Very interesting :
http://ppewww.ph.gla.ac.uk/~flavell/www/formgetbyurl.html
--
Ticket URL: <http://trac.wordpress.org/ticket/7131>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list