[wp-trac] [WordPress Trac] #16466: HTML in comments results in invalid XML in comments feed
WordPress Trac
wp-trac at lists.automattic.com
Fri Aug 31 14:24:20 UTC 2012
#16466: HTML in comments results in invalid XML in comments feed
----------------------------------------+--------------------------
Reporter: barry | Owner: markjaquith
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 3.5
Component: Feeds | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch 3.2-early commit |
----------------------------------------+--------------------------
Comment (by mdgl):
We have a default filter of esc_html() declared against comment_text_rss()
so shouldn't this have already solved the problem?
That said, we're using CDATA blocks in most related areas (e.g. post
content, excerpts), so perhaps it's more consistent to use them here as
well.
An issue remains however in the use of comment_text_rss() as this doesn't
apply all of the expected filters (e.g. wpautop). I suspect it might be
better to deprecate comment_text_rss() and use just comment_text() as
elsewhere in the RSS2 and Atom feeds. See also #21753 for a similar issue
with the use of excerpts in feeds.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16466#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list