[wp-trac] [WordPress Trac] #32620: Wordpress is not stripping invalid tags in get_the_content_feed
WordPress Trac
noreply at wordpress.org
Fri Jun 12 00:01:44 UTC 2015
#32620: Wordpress is not stripping invalid tags in get_the_content_feed
----------------------------+-----------------------------
Reporter: juniorm | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Feeds | Version: 4.2.2
Severity: normal | Keywords:
Focuses: administration |
----------------------------+-----------------------------
I think that maybe get_the_content_feed does not stript invalid tags from
post content. I have posted a question about it in here:
http://wordpress.stackexchange.com/questions/191199/does-get-the-content-
feed-strip-invalid-tags
I have an '''iframe''' within a post body content, and wordpress feed is
not working anymore.
== Possible solutions ==
1) When generating rss feed maybe would be nicer to add more functions to
strip those invalid tags, sanitize the string, and also remove shortcodes
'''[bla] blabla [\/bla]'''
2) or... you could add a menu option in Wordpress panel to fine tune how
feed would be generated. You could choose if invalid tags should be
removed or not, so the feed would contain only plain text in <content>
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32620>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list