mirror of
https://github.com/strapi/strapi.git
synced 2025-09-19 21:38:05 +00:00
Merge branch 'main' into fix/custom-field-number-type
This commit is contained in:
commit
8cd85e9d9a
@ -13,7 +13,7 @@ import sanitizeHtml from './utils/satinizeHtml';
|
||||
import Wrapper from './Wrapper';
|
||||
|
||||
const PreviewWysiwyg = ({ data }) => {
|
||||
const html = useMemo(() => sanitizeHtml(md.render(data || '')), [data]);
|
||||
const html = useMemo(() => sanitizeHtml(md.render(data.replaceAll('\\n', '\n') || '')), [data]);
|
||||
|
||||
return (
|
||||
<Wrapper>
|
||||
|
Loading…
x
Reference in New Issue
Block a user