Skip to content

fix(scrape): parse spaced meta attributes - #83

Open
aiirvizionz wants to merge 1 commit into
profullstack:masterfrom
aiirvizionz:clientkit/scrape-spaced-meta-attrs
Open

fix(scrape): parse spaced meta attributes#83
aiirvizionz wants to merge 1 commit into
profullstack:masterfrom
aiirvizionz:clientkit/scrape-spaced-meta-attrs

Conversation

@aiirvizionz

Copy link
Copy Markdown
Contributor

Summary

  • accept whitespace around property, name, and content attribute assignments in meta tags
  • preserve the existing handling for both attribute orders
  • add regression coverage for spaced OpenGraph and description meta tags

Why

The scraper only matched meta tags written as property="..." and content="...". Valid HTML can include spaces around =, which made otherwise usable link previews lose their title or description.

Validation

  • apps/web/node_modules/.bin/vitest.cmd run apps/web/lib/scrape.test.ts (3 tests passed)

@aiirvizionz
aiirvizionz force-pushed the clientkit/scrape-spaced-meta-attrs branch from 5338bc4 to 9c81e39 Compare July 25, 2026 22: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.

1 participant