fuse-angular/src/@fuse/pipes/htmlToPlaintext.pipe.ts
Sercan Yemen 51bd636ba6 Moved core into @fuse
+ New fuse sidebar component
+ Moved the navbar to the sidebar
2018-02-17 17:21:39 +03:00

11 lines
276 B
TypeScript

import { Pipe, PipeTransform } from '@angular/core';
@Pipe({name: 'htmlToPlaintext'})
export class HtmlToPlaintextPipe implements PipeTransform
{
transform(value: string, args: any[] = [])
{
return value ? String(value).replace(/<[^>]+>/gm, '') : '';
}
}