/
githubmirror
/
novu
Обзор
Документация
Войти
/
githubmirror
/
novu
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
next
libs/application-generic/src/usecases/message-template/shared.ts
11 строк
360 B
George Djabarov
refactor(root): html sanitization (#7921)
20 мар 2025, 20:33
Не верифицирован
20 мар 2025, 20:33
01908ff
Код
Авторство
О чём код?
import { MessageTemplateContentType, StepTypeEnum } from '@novu/shared'; export function shouldSanitize(channelType: StepTypeEnum, contentType?: MessageTemplateContentType) { const channelsToSanitize = [StepTypeEnum.EMAIL, StepTypeEnum.IN_APP]; if (!channelsToSanitize.includes(channelType)) { return false; } return contentType === 'editor'; }