update view texteditor
This commit is contained in:
@@ -248,10 +248,7 @@ export default function ServiceMonitoring() {
|
||||
};
|
||||
}, [corporateValue]);
|
||||
|
||||
const clearCodeHtml = (text:any) => {
|
||||
return new DOMParser().parseFromString(text, 'text/html').documentElement.textContent
|
||||
}
|
||||
|
||||
|
||||
const renderHTML = (data:string) => {
|
||||
return (
|
||||
<div style={{marginLeft: 20}}
|
||||
@@ -990,7 +987,7 @@ export default function ServiceMonitoring() {
|
||||
<Typography variant="h6">Subject</Typography>
|
||||
<Typography variant="inherit">
|
||||
{dailyMonitoring.subject
|
||||
? clearCodeHtml(dailyMonitoring.subject)
|
||||
? renderHTML(dailyMonitoring.subject)
|
||||
: '-'}
|
||||
</Typography>
|
||||
</Stack>
|
||||
@@ -1002,7 +999,7 @@ export default function ServiceMonitoring() {
|
||||
</Typography>
|
||||
<Typography variant="inherit">
|
||||
{dailyMonitoring.object
|
||||
? clearCodeHtml(dailyMonitoring.object)
|
||||
? renderHTML(dailyMonitoring.object)
|
||||
: '-'}
|
||||
</Typography>
|
||||
</Stack>
|
||||
@@ -1100,7 +1097,7 @@ export default function ServiceMonitoring() {
|
||||
<Stack>
|
||||
<Typography variant="inherit">
|
||||
{dailyMonitoring.analysis
|
||||
? clearCodeHtml(dailyMonitoring.analysis)
|
||||
? renderHTML(dailyMonitoring.analysis)
|
||||
: '-'}
|
||||
</Typography>
|
||||
</Stack>
|
||||
|
||||
Reference in New Issue
Block a user