aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Angular.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Angular.js b/src/Angular.js
index 3f9938f1..7ab0e7f6 100644
--- a/src/Angular.js
+++ b/src/Angular.js
@@ -742,7 +742,7 @@ function startingTag(element) {
// are not allowed to have children. So we just ignore it.
element.html('');
} catch(e) {};
- return jqLite('<div>').append(element).html().replace(/\<\/[\w\:\-]+\>$/, '');
+ return jqLite('<div>').append(element).html().match(/^(<[^>]+>)/)[1];
}