Угловая полоса HTML -метки труба
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