Skip to content

Committee Previews Display Ampersand as &#174

Merged
calebyhan merged 1 commit into
mainfrom
161/ampersand-fix
Jun 23, 2026
Merged

Committee Previews Display Ampersand as &#174
calebyhan merged 1 commit into
mainfrom
161/ampersand-fix

Conversation

@calebyhan

Copy link
Copy Markdown
Contributor

The committees listing page (/committees) shows a short text preview of each committee's description using stripHtmlTags. Because committee descriptions are stored as HTML (produced by the rich text editor), any & character is stored as the HTML entity &. The stripHtmlTags utility in frontend/src/lib/html.ts strips HTML tags but does not decode HTML entities, so & is displayed literally in the preview card.

Changes:

  • HTML stripping function

Closes #161

@github-actions

Copy link
Copy Markdown

Test Results

570 tests  ±0   570 ✅ ±0   49s ⏱️ +11s
  1 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit ace5395. ± Comparison against base commit cb4f237.

@MasonMines2006 MasonMines2006 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, w small changes

@calebyhan calebyhan merged commit 816907b into main Jun 23, 2026
3 checks passed
@calebyhan calebyhan deleted the 161/ampersand-fix branch June 23, 2026 19:15
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.

Committee Previews Display Ampersand as &

2 participants