Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danielkucal/ngx-sanitizer
A set of useful pipes to bypass Angular security check for trusted resources.
https://github.com/danielkucal/ngx-sanitizer
Last synced: about 1 month ago
JSON representation
A set of useful pipes to bypass Angular security check for trusted resources.
- Host: GitHub
- URL: https://github.com/danielkucal/ngx-sanitizer
- Owner: DanielKucal
- Created: 2019-09-20T15:29:49.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-30T11:45:50.000Z (almost 4 years ago)
- Last Synced: 2023-03-01T20:22:25.090Z (almost 2 years ago)
- Language: TypeScript
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ngx-Sanitizer
## Installation
1. `npm i ngx-sanitizer`
2. Import `NgxSanitizerModule` into your module(s).## About
This library provides a set of simple yet useful pipes:
- `SafeUrlPipe`
- `SafeHtmlPipe`
- `SafeStylePipe`
- `SafeScriptPipe`
- `SafeResourceUrlPipe`that can be used to say Angular we trust the data we provide, e.g.:
`,
```typescript
@Component({
template: `
})
export class SomeComponent {
someUntrustedHtml = 'I am Strong!';
}
```##### NOTE: Please, make sure you made yourself familiar with [Angular Security Guide](https://angular.io/guide/security) and you know which resources can be trusted.