import { stripAndTruncateHTML } from "./string.helper"; export const sanitizeCommentForNotification = (mentionContent: string | undefined) => mentionContent ? stripAndTruncateHTML( mentionContent.replace(/]*\blabel="([^"]*)"[^>]*><\/mention-component>/g, "$1") ) : mentionContent;