mirror of
https://github.com/makeplane/plane.git
synced 2025-12-25 16:19:43 +01:00
* chore: rendering mention comments in notification modal * chore: resolved build errors * chore: updated workflow * chore: updated function name and handled the notification mention render
9 lines
329 B
TypeScript
9 lines
329 B
TypeScript
import { stripAndTruncateHTML } from "./string.helper";
|
|
|
|
export const sanitizeCommentForNotification = (mentionContent: string | undefined) =>
|
|
mentionContent
|
|
? stripAndTruncateHTML(
|
|
mentionContent.replace(/<mention-component\b[^>]*\blabel="([^"]*)"[^>]*><\/mention-component>/g, "$1")
|
|
)
|
|
: mentionContent;
|