Skip to content

Conversation

@shgysk8zer0
Copy link
Member

Introduces a new createPolicy() function in trusted-html.js to create a Trusted Types policy for HTML sanitization, supporting both direct string and tagged template usage. Adds an html tagged template function to automatically escape interpolated values, updates exports, configuration, and tests, and bumps the package version to 1.0.2.

Description and issue

Please add relevant sections (Added, removed, changed, fixed) to CHANGELOG.md

List of significant changes made

Introduces a new `createPolicy()` function in `trusted-html.js` to create a Trusted Types policy for HTML sanitization, supporting both direct string and tagged template usage. Adds an `html` tagged template function to automatically escape interpolated values, updates exports, configuration, and tests, and bumps the package version to 1.0.2.
@shgysk8zer0 shgysk8zer0 added the enhancement New feature or request label Jan 5, 2026
@shgysk8zer0 shgysk8zer0 self-assigned this Jan 5, 2026
@shgysk8zer0 shgysk8zer0 enabled auto-merge January 5, 2026 22:01
@shgysk8zer0 shgysk8zer0 merged commit bd42476 into master Jan 5, 2026
4 checks passed
@shgysk8zer0 shgysk8zer0 deleted the feature/trusted-html branch January 5, 2026 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants