Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[lit-element] unsafeHTML directive but without javascript execution #4610

Open
1 task done
wparad opened this issue Apr 4, 2024 · 0 comments
Open
1 task done

[lit-element] unsafeHTML directive but without javascript execution #4610

wparad opened this issue Apr 4, 2024 · 0 comments

Comments

@wparad
Copy link

wparad commented Apr 4, 2024

Should this be an RFC?

  • This is not a substantial change

Which package is this a feature request for?

Lit Core (lit / lit-html / lit-element / reactive-element)

Description

As far as I can tell there is no way to allow unsafeHTML to interpolate html but exclude <script> tags from executing. This would be a great security improvement because often there's very little reason to support <script> tags in unsafeHTML.

Alternatives and Workarounds

None aside from manually finding and replacing <script> tags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant