This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor($sanitize): new implementation of the html sanitized parser
This implementation is based on using inert document parsed by the browser Closes #11442 Closes #11443 Closes #12524
- Loading branch information
1 parent
1c97a60
commit 35a2153
Showing
5 changed files
with
134 additions
and
560 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
@ngdoc error | ||
@name $sanitize:ddns | ||
@fullName DOMDocument not supported | ||
@description | ||
|
||
This error occurs when `$sanitize` sanitizer determines that `DOMDocument` api is not supported by the current browser. | ||
|
||
This api is necessary for safe parsing of HTML strings into DOM trees and without it the sanitizer can't sanitize the input. | ||
|
||
The api is present in all supported browsers including IE 9.0, so the presence of this error usually indicates that Angular's `$sanitize` is being used on an unsupported platform. |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.