mirror of
https://github.com/jquery/jquery.git
synced 2026-01-25 06:28:18 -05:00
Fix #13223. Re-allow leading space in HTML. Close gh-1264.
This commit is contained in:
@@ -55,7 +55,7 @@ var
|
||||
// A simple way to check for HTML strings
|
||||
// Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
|
||||
// Strict HTML recognition (#11290: must start with <)
|
||||
rquickExpr = /^(?:(<[\w\W]+>)[^>]*|#([\w-]*))$/,
|
||||
rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,
|
||||
|
||||
// Match a standalone tag
|
||||
rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>|)$/,
|
||||
|
||||
Reference in New Issue
Block a user