We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2ef0000 + 64f1fc9 commit 784c06eCopy full SHA for 784c06e
1 file changed
packages/webpack-plugin/lib/runtime/components/web/filterTag.js
@@ -88,7 +88,16 @@ function parseHTML (html, options) {
88
match.end = index
89
handleStartTag(match)
90
}
91
+ continue
92
+ }
93
+
94
+ // If we reach here, the `<` at position 0 does not start a valid tag/comment/end tag
95
+ // Treat it as plain text to avoid infinite loop on stray '<'
96
+ if (options.chars) {
97
+ options.chars('<')
98
99
+ advance(1)
100
101
102
let text, rest, next
103
if (textEnd >= 0) {
0 commit comments