Skip to content

[FEATURE] Allow TagBuilder to be returned from tag-based ViewHelpers#1375

Open
Kanti wants to merge 1 commit intoTYPO3:mainfrom
Kanti:feature/TagBuilder-UnsafeHTML
Open

[FEATURE] Allow TagBuilder to be returned from tag-based ViewHelpers#1375
Kanti wants to merge 1 commit intoTYPO3:mainfrom
Kanti:feature/TagBuilder-UnsafeHTML

Conversation

@Kanti
Copy link
Copy Markdown
Contributor

@Kanti Kanti commented Apr 24, 2026

Implement UnsafeHTML on TagBuilder and return the object from tag-based ViewHelpers instead of rendering it immediately.
This allows structured return values and enables more reuse of tag-building code.

One example is an image ViewHelper that returns a rendered tag object first, so another layer can still add an attribute afterwards, even after the ViewHelper itself has already finished rendering.

Implement UnsafeHTML on TagBuilder and return the object from tag-based
ViewHelpers instead of rendering it immediately.
This allows structured return values and enables more reuse of tag-building code.

One example is an image ViewHelper that returns a rendered tag object first,
so another layer can still add an attribute afterwards, even after the
ViewHelper itself has already finished rendering.
@Kanti Kanti force-pushed the feature/TagBuilder-UnsafeHTML branch from 077835c to ba17646 Compare April 24, 2026 07:36
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