glanceapp / glanceapp/glance

Strip HTML comments from RSS feed descriptions

Open Beginner friendly
#919 1 comment 0 reactions 0 assignees View on GitHub
bug report
Dominant language
Go
Stars
37.1k
Forks
1.5k
Avg merge
1h 11m
Merged PRs (30d)
1

Description

### Description

HTML comments (e.g., ``, ``) sometimes appear in RSS feed descriptions, making them visible to users in the RSS widget.

In `internal/glance/widget-rss.go`, add a regex pattern to strip HTML comments in `sanitizeFeedDescription()`:
```go
var htmlCommentsPattern = regexp.MustCompile(``)
```

I'd like to submit a PR for this if the approach looks good.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in internal/glance/widget-rss.go and read sanitizeFeedDescription() along with the surrounding RSS description handling. Add the requested HTML-comment removal there, then verify that RSS descriptions no longer expose comments such as or while preserving the remaining description content.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.