diff --git a/src/views/accounts/HtmlPreview.jsx b/src/views/accounts/HtmlPreview.jsx index 42b67dd..c056f54 100644 --- a/src/views/accounts/HtmlPreview.jsx +++ b/src/views/accounts/HtmlPreview.jsx @@ -1,22 +1,10 @@ import { Empty, Skeleton, Divider, Flex, Button } from 'antd' import { Conditional } from '@/components/Conditional' -import { isEmpty, isNotEmpty } from '@/utils/commons' - -const decodeHtml = (text) => { - - if (isEmpty(text)) return - - const temp = document.createElement('div') - temp.innerHTML = text - - return temp.innerText || temp.textContent -} +import { isNotEmpty } from '@/utils/commons' const HtmlPreview = (props) => { const { loading = false, value } = props - const html = decodeHtml(value) - if (loading) { return } @@ -24,10 +12,9 @@ const HtmlPreview = (props) => { return (
- {html} +
           
} whenFalse={}