Skip to content

Conversation

@manuzhang
Copy link

Add automatic HTML comment removal from all feed item descriptions to ensure clean content in RSS and JSON feeds. Comments are stripped from all content sources including markdown, page.meta descriptions, and full page content.

  • Add strip_html_comments() static method to Util class
  • Update get_description_or_abstract() to strip comments in all code paths
  • Handle both inline and multiline HTML comments
  • Preserve content structure while removing comment artifacts

This prevents HTML comments (including TODO notes, analytics codes, and other internal annotations) from appearing in published feeds.

Add automatic HTML comment removal from all feed item descriptions to
ensure clean content in RSS and JSON feeds. Comments are stripped from
all content sources including markdown, page.meta descriptions, and
full page content.

- Add strip_html_comments() static method to Util class
- Update get_description_or_abstract() to strip comments in all code paths
- Handle both inline and multiline HTML comments
- Preserve content structure while removing comment artifacts

This prevents HTML comments (including TODO notes, analytics codes,
and other internal annotations) from appearing in published feeds.

Co-Authored-By: Claude <<EMAIL_ADDRESS>>
@github-actions github-actions bot added the enhancement New feature or request label Jan 22, 2026
@sonarqubecloud
Copy link

@manuzhang
Copy link
Author

@Guts Please help review, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant