FreshRSS/FreshRSS

[Feature] Ignore junk after closing RSS tag in XML

Open

#8,326 创建于 2025年12月17日

在 GitHub 查看
 (7 评论) (0 反应) (0 负责人)PHP (15,022 star) (1,171 fork)batch import
Feature RequestFeed problem :newspaper_roll:help wanted

描述

Is your feature request related to a problem? Please describe.

Cloudflare insights intermittently appends some HTML to RSS feeds unintentionally on some websites causing feed loading to fail.

Here is an example:

...
</rss>
 
<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin
 
Object Caching 417/1500 objects using APC
Page Caching using Disk: Enhanced
 
Served from: ... @ 2025-12-17 11:27:25 by W3 Total Cache
--><a href="..." aria-hidden="true" rel="nofollow noopener" style="display: none !important; visibility: hidden !important"></a><script defer src="https://static.cloudflareinsights.com/beacon.min.js/..." integrity="..." data-cf-beacon='{"version":"2024.11.0","token":"...","server_timing":{"name":{"cfCacheStatus":true,"cfEdge":true,"cfExtPri":true,"cfL4":true,"cfOrigin":true,"cfSpeedBrain":true},"location_startswith":null}}' crossorigin="anonymous"></script>
 

Use case

No response

Describe the solution you’d like

Since the RSS data itself is fine, we could just load that and ignore any junk after the closing tag rather than inconveniencing the user with something only the site admin can fix.

Describe alternatives you’ve considered

No response

Additional context

No response

贡献者指南

[Feature] Ignore junk after closing RSS tag in XML · FreshRSS/FreshRSS#8326 | Good First Issue