Pipa Tag HTML Strip Angular

import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
  name: 'stripHtmlTags'
})
export class StripHtmlTagsPipe implements PipeTransform {

  transform(value: string, ...args: string[]): string {
    return value.replace(/<[^>]*>/g, '');
  }
}
Alex Latorre