You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
- **[2df43c](https://github.com/angular/angular.js/commit/2df43c07779137d1bddf7f3b282a1287a8634acd)**: prevent possible XSS due to regex-based HTML replacement
14
+
15
+
JqLite no longer turns XHTML-like strings like `<div /><span />` to sibling elements `<div></div><span></span>`
16
+
when not in XHTML mode. Instead it will leave them as-is. The browser, in non-XHTML mode, will convert these to:
17
+
`<div><span></span></div>`.
18
+
19
+
This is a security fix to avoid an XSS vulnerability if a new jqLite element is created from a user-controlled HTML string.
20
+
If you must have this functionality and understand the risk involved then it is posible to restore the original behavior by calling
But you should adjust your code for this change and remove your use of this function as soon as possible.
27
+
28
+
Note that this only patches jqLite. If you use jQuery 3.5.0 or newer, please read the [jQuery 3.5 upgrade guide](https://jquery.com/upgrade-guide/3.5/) for more details about the workarounds.
0 commit comments