ALLOWED_ATTR: ['src', 'width', 'height', 'href', 'alt', 'title'],
};
-export const sanitizeHTML = (dirtyInput: string): string => {
- console.log('dirty------', dirtyInput);
+export const sanitizeHTML = (dirtyInput: string): string => DOMPurify.sanitize(dirtyInput, domPurifyConfig);
- const clean = DOMPurify.sanitize(dirtyInput, domPurifyConfig);
-
- console.log('clean------', clean);
-
- return clean;
-};
}
const mapStateToProps = (state: RootState, { id }: Props) => {
- // console.log(state.form.projectUpdateFormName? state.form.projectUpdateFormName:'')
const progress = state.progressIndicator.find(p => p.id === id);
const dataExplorerState = getDataExplorer(state.dataExplorer, id);
const currentRoute = state.router.location ? state.router.location.pathname : '';
color="primary"
style={{ cursor: "pointer" }}
onClick={() => {
- console.log(item);
item.kind === ResourceKind.GROUP && (item as GroupResource).groupClass === "role"
? dispatch<any>(navigateToGroupDetails(item.uuid))
: dispatch<any>(navigateTo(item.uuid));