Skip to content

[SSR] Implement setHooks / lwc:inner-html sanitization #4653

Open
@nolanlawson

Description

@nolanlawson

In the SSR compiler/runtime, we should have a parallel API like setHooks to enforce lwc:inner-html validation. It should throw an error at runtime if setHooks is not called, and use the hook if it is called.

Related: #4442 . We are considering removing it, but for now this is how @lwc/engine-server behaves.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions