Skip to content

Commit 19e3e40

Browse files
mheveryIgorMinar
authored andcommitted
refactor($sanitize): new implementation of the html sanitized parser
This implementation is based on using inert document parsed by the browser Closes angular#11442 Closes angular#11443
1 parent 544001f commit 19e3e40

File tree

5 files changed

+133
-559
lines changed

5 files changed

+133
-559
lines changed

docs/content/error/$sanitize/badparse.ngdoc

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
@ngdoc error
2+
@name $sanitize:ddns
3+
@fullName DOMDocument not supported
4+
@description
5+
6+
This error occurs when `$sanitize` sanitizer determines that `DOMDocument` api is not supported by the current browser.
7+
8+
This api is necessary for safe parsing of HTML strings into DOM trees and without it the sanitizer can't sanitize the input.
9+
10+
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.

lib/htmlparser/htmlparser.js

Lines changed: 0 additions & 309 deletions
This file was deleted.

0 commit comments

Comments
 (0)