export function statusUpdateSubject(status: string): string { return `Your application status has been updated to ${status}`; } export function statusUpdateText(name: string, status: string): string { return `Hi ${name},\n\nYour application status has been updated to ${status}.\n\nIf you have any questions, please reply to this email.\n\nBest regards,\nPlacement Cell`; } export function statusUpdateHtml(name: string, status: string): string { return `

Application Status Updated

Hi ${escapeHtml(name)},

Your application status has been updated to ${escapeHtml(status)}.

If you have any questions, please reply to this email.

Best regards,
Placement Cell

`; } function escapeHtml(input: string): string { return input .replace(/&/g, '&') .replace(//g, '>') .replace(/"/g, '"') .replace(/'/g, '''); }