Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 898714d commit 030a42eCopy full SHA for 030a42e
src/ngSanitize/sanitize.js
@@ -336,7 +336,8 @@ function htmlParser(html, handler) {
336
}
337
338
} else {
339
- html = html.replace(new RegExp("([^]*)<\\s*\\/\\s*" + stack.last() + "[^>]*>", 'i'),
+ // IE versions 9 and 10 do not understand the regex '[^]', so using a workaround with [\W\w].
340
+ html = html.replace(new RegExp("([\\W\\w]*)<\\s*\\/\\s*" + stack.last() + "[^>]*>", 'i'),
341
function(all, text) {
342
text = text.replace(COMMENT_REGEXP, "$1").replace(CDATA_REGEXP, "$1");
343
0 commit comments