#16466 closed defect (bug) (fixed)
HTML in comments results in invalid XML in comments feed
Reported by: | barry | Owned by: | markjaquith |
---|---|---|---|
Milestone: | 3.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Feeds | Keywords: | has-patch 3.2-early commit |
Focuses: | Cc: |
Description
HTML in comments results in invalid XML in comments feed
Patch attached
Attachments (2)
Change History (7)
#2
@
14 years ago
- Keywords has-patch 3.2-early added
- Milestone changed from Awaiting Review to Future Release
Looks good.
#3
@
12 years ago
- Component changed from General to Feeds
- Keywords commit added
- Milestone changed from Future Release to 3.5
#4
@
12 years ago
- Owner set to markjaquith
- Resolution set to fixed
- Status changed from new to closed
In [21238]:
#5
@
12 years ago
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.
Note: See
TracTickets for help on using
tickets.
atom comment feed already uses CDATA