Skip to content

fix: Using html entities for angle brackets gives different result in react a... - #1813

Open
Roshan931 wants to merge 1 commit into
BuilderIO:mainfrom
Roshan931:prilog/fix-error-angular-generator-joins-element-children-08-21-2026-8942b7
Open

fix: Using html entities for angle brackets gives different result in react a...#1813
Roshan931 wants to merge 1 commit into
BuilderIO:mainfrom
Roshan931:prilog/fix-error-angular-generator-joins-element-children-08-21-2026-8942b7

Conversation

@Roshan931

Copy link
Copy Markdown

Fixes #1586

Root cause

Angular generator joins element children with a newline, adding rendered whitespace between adjacent text nodes

Changes

  • Added a joinChildren helper in the Angular generator helpers that only inserts the newline separator when it does not create whitespace between two plain-text chunks (tag boundaries and {{...}} interpolations keep the previous newline behaviour), and used it in every child-join site of the classic and signals Angular block generators. Added a focused regression test and a changeset.

@Roshan931
Roshan931 requested a review from samijaber as a code owner August 21, 2026 18:23
@changeset-bot

changeset-bot Bot commented Aug 21, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: b560107

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

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.

Using html entities for angle brackets gives different result in react and angular

1 participant