]> Untitled Git - lemmy-ui.git/commitdiff
Fix preview description html. Fixes #110
authorDessalines <tyhou13@gmx.com>
Sat, 17 Jul 2021 03:41:00 +0000 (23:41 -0400)
committerDessalines <tyhou13@gmx.com>
Sat, 17 Jul 2021 03:41:00 +0000 (23:41 -0400)
src/shared/components/iframely-card.tsx

index 2ecbf7f8eff3968cea92a34bdd93ac2f3039c771..4b1e4ebe6cd67663e4e0ccc3b9a86a726f1c5652 100644 (file)
@@ -1,6 +1,5 @@
 import { Component, linkEvent } from "inferno";
 import { Post } from "lemmy-js-client";
-import { mdToHtml } from "../utils";
 import { i18n } from "../i18next";
 import { Icon } from "./icon";
 
@@ -54,7 +53,9 @@ export class IFramelyCard extends Component<
                   {post.embed_description && (
                     <div
                       className="card-text small text-muted md-div"
-                      dangerouslySetInnerHTML={mdToHtml(post.embed_description)}
+                      dangerouslySetInnerHTML={{
+                        __html: post.embed_description,
+                      }}
                     />
                   )}
                   {post.embed_html && (