[wp-trac] [WordPress Trac] #32620: Wordpress is not stripping invalid tags in get_the_content_feed

WordPress Trac noreply at wordpress.org
Tue Jun 16 04:21:23 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:  minor         |  Resolution:
 Keywords:                |     Focuses:  administration
--------------------------+------------------------------
Changes (by stevenkword):

 * severity:  normal => minor


Comment:

 Replying to [ticket:32620 juniorm]:
 > 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.
 I have just used the iframe from your stackexchange example and my browser
 is not throwing errors.  I see that the w3c validator is issuing a
 warning, but this is not a validation error and your feed should be
 functional.

 > 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>
 This might make for a good plugin. We should aim to make decisions and not
 options. However we can provide a way to extend our decisions to allow for
 more options.

 Since the feed isn't throwing errors, it would hard to make and argument
 for stripping out the tags that so many content providers depend on.  This
 might be related to how we are encoding feeds though.  There are other
 problems that we know about related to CDATA, and I'm beginning to think
 we should get rid of CDATA all together in favor of an "escape everything"
 philosophy.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32620#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list