File tree Expand file tree Collapse file tree 3 files changed +1
-19
lines changed Expand file tree Collapse file tree 3 files changed +1
-19
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,6 @@ export const formatProperty = (property) => {
14
14
) ;
15
15
}
16
16
return str ;
17
-
18
- // html render rollback
19
- // const cleanValue = DOMPurify.sanitize(str);
20
- // return <div dangerouslySetInnerHTML={{ __html: cleanValue }} />;
21
17
} ;
22
18
23
19
/**
@@ -94,8 +90,7 @@ export const GraphEntityInspectionTable = ({
94
90
{ key }
95
91
</ TableCell >
96
92
< TableCell align = { 'left' } style = { { color : tableTextColor } } >
97
- < ShowMoreText lines = { 2 } > { formatProperty ( entity && entity . properties [ key ] . toString ( ) ) } </ ShowMoreText >
98
- { /* <ShowMoreText lines={2}>{formatProperty(entity?.properties[key])}</ShowMoreText> */ }
93
+ < ShowMoreText lines = { 2 } > { formatProperty ( entity ?. properties [ key ] ) } </ ShowMoreText >
99
94
</ TableCell >
100
95
{ checklistEnabled ? (
101
96
< TableCell align = { 'center' } >
Original file line number Diff line number Diff line change @@ -38,16 +38,6 @@ const fallbackRenderer = (value) => {
38
38
return JSON . stringify ( value ) ;
39
39
} ;
40
40
41
- // html Render Rollback
42
- // function htmlToPlainText(html): string {
43
- // // Create a temporary div element to hold the sanitized HTML content
44
- // const tempElement = document.createElement('div');
45
- // // Set the HTML content directly as innerHTML of the temporary element
46
- // tempElement.innerHTML = html.props.dangerouslySetInnerHTML.__html;
47
- // // Extract plain text using textContent
48
- // return tempElement.textContent ?? '';
49
- // }
50
-
51
41
function renderAsButtonWrapper ( renderer ) {
52
42
return function renderAsButton ( value ) {
53
43
const outputValue = renderer ( value , true ) ;
Original file line number Diff line number Diff line change @@ -268,9 +268,6 @@ function RenderString(value) {
268
268
) ;
269
269
}
270
270
return str ;
271
- // html render rollback
272
- // const cleanValue = DOMPurify.sanitize(str);
273
- // return <div dangerouslySetInnerHTML={{ __html: cleanValue }} />;
274
271
}
275
272
276
273
function RenderLink ( value , disabled = false ) {
You can’t perform that action at this time.
0 commit comments