[wp-trac] [WordPress Trac] #9993: Rss and atom feeds are dropping some characters
WordPress Trac
noreply at wordpress.org
Tue May 19 06:45:17 UTC 2015
#9993: Rss and atom feeds are dropping some characters
-------------------------------------+-----------------------------
Reporter: pm24601 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Feeds | Version: 2.7.1
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses:
-------------------------------------+-----------------------------
Comment (by stevenkword):
Replying to [comment:19 mdgl]:
> Replying to [comment:14 peaceablewhale]:
> > I still think there is no reason for having 'strip_tags' in feed title
as they are escaped already.
>
> According to the RSS Best Practices Profile (http://www.rssboard.org
/rss-profile), the `<title>` element for both channels and items is plain
text character data and so should not contain embedded HTML tags.
>
> I also don't see how post titles are already "escaped".
I believe what @peaceablewhale is saying is that the filters applied to
the `the_title_rss` include methods for escaping HTML. If an additional
filter was added to `the_title_rss` that also escaped the disallowed XML
characters, there would be no reason to strip the tags.
`<h1>` would be disallowed in XML, but `<h1>` is both valid and "plain
text"
--
Ticket URL: <https://core.trac.wordpress.org/ticket/9993#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list