aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2009-11-11 14:23:56 -0500
committerJohn Resig <jeresig@gmail.com>2009-11-11 14:23:56 -0500
commit7c4144fab314d98b85303d01ab904bb711bc2ecc (patch)
tree3986d45973203814632022cbf5976c1e27676373 /src
parent449e099b97d823ed0252d8821880bc0e471701ea (diff)
downloadjquery-7c4144fab314d98b85303d01ab904bb711bc2ecc.tar.gz
jquery-7c4144fab314d98b85303d01ab904bb711bc2ecc.zip
Fixed the case where HTML that contained entities was being inserted as text strings instead of HTML. Thanks to dmethvin for the test case! Fixes #5483.
Diffstat (limited to 'src')
-rw-r--r--src/manipulation.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/manipulation.js b/src/manipulation.js
index eea377b7e..1699f6801 100644
--- a/src/manipulation.js
+++ b/src/manipulation.js
@@ -4,7 +4,7 @@ var rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g,
rselfClosing = /^(?:abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i,
rtagName = /<([\w:]+)/,
rtbody = /<tbody/i,
- rhtml = /</,
+ rhtml = /<|&\w+;/,
fcloseTag = function(all, front, tag){
return rselfClosing.test(tag) ?
all :