From 9fdbc8bf33418f7b3a3a88df9a04ffee53c8dc66 Mon Sep 17 00:00:00 2001 From: Dave Methvin Date: Wed, 8 May 2013 21:07:41 -0400 Subject: Fix #13223. Re-allow leading space in HTML. Close gh-1264. (cherry picked from commit 00eafdf028f7730665ce1c05ab44e3f0bc80fbc2) --- src/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core.js') diff --git a/src/core.js b/src/core.js index 265f0bc4a..86b35a6f0 100644 --- a/src/core.js +++ b/src/core.js @@ -52,7 +52,7 @@ var // A simple way to check for HTML strings // Prioritize #id over 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>|)$/, -- cgit v1.2.3