angular/packages/core/src/sanitization
Joey Perrott d1ea1f4c7f build: update license headers to reference Google LLC (#37205)
Update the license headers throughout the repository to reference Google LLC
rather than Google Inc, for the required license headers.

PR Close #37205
2020-05-26 14:26:58 -04:00
..
bypass.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
html_sanitizer.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
inert_body.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
readme.md refactor(core): move sanitization into core (#22540) 2018-03-07 18:24:06 -08:00
sanitization.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
sanitizer.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
security.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
url_sanitizer.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00

Sanitization

This folder contains sanitization related code.

History

It used to be that sanitization related code used to be in @angular/platform-browser since it is platform related. While this is true, in practice the compiler schema is permanently tied to the DOM and hence the fact that sanitizer could in theory be replaced is not used in practice.

In order to better support tree shaking we need to be able to refer to the sanitization functions from the Ivy code. For this reason the code has been moved into the @angular/core.