dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app/utils/pipes/HTMLToString.pipe.ts @ 61381
1 |
import {Pipe, PipeTransform} from '@angular/core'; |
---|---|
2 |
|
3 |
import {SafeUrl} from '@angular/platform-browser'; |
4 |
import {StringUtils} from '../string-utils.class'; |
5 |
|
6 |
@Pipe({ name: 'htmlToString'}) |
7 |
export class HTMLToStringPipe implements PipeTransform { |
8 |
constructor() {} |
9 |
|
10 |
transform(value):SafeUrl { |
11 |
return StringUtils.HTMLToString(value); |
12 |
}
|
13 |
}
|