diff --git a/scripts/update-policies.tsx b/scripts/update-policies.tsx index 1b0725fa..416394f9 100644 --- a/scripts/update-policies.tsx +++ b/scripts/update-policies.tsx @@ -595,13 +595,11 @@ async function getExampleHtml( let deprecatedInnerHtml = "This policy is deprecated."; if (schema.deprecatedMessage) { const { html } = await render(schema.deprecatedMessage); - deprecatedInnerHtml += " " + html; + deprecatedInnerHtml = + "

" + deprecatedInnerHtml + " " + html.toString().substring(3); } deprecatedHtml = ( -

+
); }