Unescape link preview description

This commit is contained in:
Fedor Indutny 2022-03-04 11:02:36 -08:00 committed by GitHub
parent 88b14e0130
commit 51759a64f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,6 +3,7 @@
import React from 'react';
import classNames from 'classnames';
import { unescape } from 'lodash';
import { Image } from './Image';
import { LinkPreviewDate } from './LinkPreviewDate';
@ -64,7 +65,7 @@ export const StagedLinkPreview: React.FC<Props> = ({
<div className="module-staged-link-preview__title">{title}</div>
{description && (
<div className="module-staged-link-preview__description">
{description}
{unescape(description)}
</div>
)}
<div className="module-staged-link-preview__footer">