hunk.code_window: @Injectable()
   export class NotifireService {
     private notifire: any;
     private readonly providers: Array<any>;
     private readonly templates: Array<any>;
     constructor(
       @Inject(NOTIFIRE_OPTIONS) private _NotifireOptions: NotifireOptions
     ) {
       this.notifire = new Notifire();
  
hunk.labels: keep keep keep keep replace replace keep keep keep keep keep
hunk.after_edit:   private readonly providers: IProvider[];
     private readonly templates: ITemplate[];
  
hunk.file_path: packages/nest/src/services/notifire.service.ts
hunk.type: replace
file: import * as sanitize from 'sanitize-html';
  import { IEmailBlock } from '@notifire/shared';
  
  export function sanitizeHTML(html: string) {
    if (!html) return html;
  
    return sanitize(html);
  }
  
  export function sanitizeMessageContent(content: string | IEmailBlock[]) {
    if (typeof content === 'string') {
      return sanitizeHTML(content);
    }
  
    if (Array.isArray(content)) {
      return content.map((i) => {
        return {
          ...i,
          subject: sanitizeHTML(i.subject),
          content: sanitizeHTML(i.content),
        };
      });
    }
  
    return content;
  }
  