Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions source/nodejs/adaptivecards/src/card-elements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1109,7 +1109,7 @@ export class TextBlock extends BaseTextBlock {
// Markdown processing is handled outside of Adaptive Cards. It's up to the host to ensure that markdown is safely
// processed.
private static readonly _ttMarkdownPolicy = window.trustedTypes?.createPolicy(
"markdownPassthroughPolicy",
"adaptivecards#markdownPassthroughPolicy",
{ createHTML: (value) => value }
);

Expand All @@ -1118,7 +1118,7 @@ export class TextBlock extends BaseTextBlock {
// _originalInnerHtml so that we can restore/recalculate truncation later if space availability has changed (see
// TextBlock.restoreOriginalContent())
private static readonly _ttRoundtripPolicy = window.trustedTypes?.createPolicy(
"restoreContentsPolicy",
"adaptivecards#restoreContentsPolicy",
{ createHTML: (value) => value }
);

Expand Down
2 changes: 1 addition & 1 deletion source/nodejs/adaptivecards/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export function truncateText(element: HTMLElement, maxHeight: number, lineHeight
* TextBlock.truncateIfSupported}), but had a bug where it might actually pass through an element
* for which innerHTML yielded actual HTML (since fixed).
*/
const ttDeprecatedPolicy = window.trustedTypes?.createPolicy("deprecatedExportedFunctionPolicy", {
const ttDeprecatedPolicy = window.trustedTypes?.createPolicy("adaptivecards#deprecatedExportedFunctionPolicy", {
createHTML: (value) => value
});

Expand Down