Skip to content

Escape feed names in story list - #1648

Merged
mockdeep merged 1 commit into
mainfrom
escape-feed-names
Oct 22, 2026
Merged

mockdeep merged 1 commit into
mainfrom
escape-feed-names

Conversation

@mockdeep

Copy link
Copy Markdown
Collaborator

What

  • Render the feed name in the story template with the escaped
    {{- }} form instead of raw {{= }}.
  • Run feed names from OPML imports through ContentSanitizer, as
    Feed::Create already does.

Why

Feed names from OPML imports were saved as-is and then inserted
into the story list as raw HTML, so markup in a feed name could
run in the reader's browser.

Notes

Names already cleaned by the sanitizer have & stored as
&, which now shows as & in the story list, matching
the feeds page.

**What**

- Render the feed name in the story template with the escaped
  `{{- }}` form instead of raw `{{= }}`.
- Run feed names from OPML imports through `ContentSanitizer`, as
  `Feed::Create` already does.

**Why**

Feed names from OPML imports were saved as-is and then inserted
into the story list as raw HTML, so markup in a feed name could
run in the reader's browser.

**Notes**

Names already cleaned by the sanitizer have `&` stored as
`&`, which now shows as `&` in the story list, matching
the feeds page.
@mockdeep mockdeep self-assigned this Oct 22, 2026
@mockdeep
mockdeep enabled auto-merge (squash) October 22, 2026 16:56
@mockdeep
mockdeep merged commit 86c1288 into main Oct 22, 2026
4 checks passed
@mockdeep
mockdeep deleted the escape-feed-names branch October 22, 2026 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant