mirror of
https://github.com/strapi/strapi.git
synced 2025-09-20 05:52:08 +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';
|
import Wrapper from './Wrapper';
|
||||||
|
|
||||||
const PreviewWysiwyg = ({ data }) => {
|
const PreviewWysiwyg = ({ data }) => {
|
||||||
const html = useMemo(() => sanitizeHtml(md.render(data || '')), [data]);
|
const html = useMemo(() => sanitizeHtml(md.render(data.replaceAll('\\n', '\n') || '')), [data]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Wrapper>
|
<Wrapper>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user