diff --git a/src/components/ha-markdown-element.ts b/src/components/ha-markdown-element.ts index a2f30f7ff1..ec89e5ff21 100644 --- a/src/components/ha-markdown-element.ts +++ b/src/components/ha-markdown-element.ts @@ -71,7 +71,7 @@ class HaMarkdownElement extends ReactiveElement { if (!this.innerHTML && this.cache) { const key = this._computeCacheKey(); if (markdownCache.has(key)) { - render(markdownCache.get(key)!, this.renderRoot); + render(h(unsafeHTML(markdownCache.get(key))), this.renderRoot); this._resize(); } }