Skip to content

Commit

Permalink
Exports safe tagged template literal from rules_prerender.
Browse files Browse the repository at this point in the history
Refs #16.

This constructs a `SafeHtml` object from a string literal constant. Since it is a tagged template literal, it is guaranteed to be a constant authored by a developer not dependent on user input and therefore "safe" for usage.
  • Loading branch information
dgp1130 committed Sep 8, 2023
1 parent 11ceea6 commit 61b24b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rules_prerender/index.mts
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ export {
diskFs as internalDiskFs,
} from '../../common/file_system.mjs';
export { PrerenderResource } from '../../common/models/prerender_resource.mjs';
export { SafeHtml, isSafeHtml } from '../../common/safe_html/safe_html.mjs';
export { SafeHtml, isSafeHtml, safe } from '../../common/safe_html/safe_html.mjs';
export { unsafeTreatStringAsSafeHtml } from '../../common/safe_html/unsafe_html.mjs';

0 comments on commit 61b24b4

Please sign in to comment.