We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8835b74 + 7c98cbc commit c46c36cCopy full SHA for c46c36c
1 file changed
htmlparser.js
@@ -109,7 +109,7 @@
109
}
110
111
} else {
112
- html = html.replace(new RegExp("(.*)<\/" + stack.last() + "[^>]*>"), function (all, text) {
+ html = html.replace(new RegExp("(.*?)<\/" + stack.last() + "[^>]*>"), function (all, text) {
113
text = text.replace(/<!--(.*?)-->/g, "$1")
114
.replace(/<!\[CDATA\[(.*?)]]>/g, "$1");
115
0 commit comments