Skip to content

Commit d35059d

Browse files
committed
fix(compiler): prevent render of html code in paragraph, fixed #663
1 parent 4f588e0 commit d35059d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: src/core/render/compiler.js

+2
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,8 @@ export class Compiler {
261261
result = helperTpl('tip', text)
262262
} else if (/^\?>/.test(text)) {
263263
result = helperTpl('warn', text)
264+
} else if (/^</.test(text)) {
265+
return text
264266
} else {
265267
result = `<p>${text}</p>`
266268
}

0 commit comments

Comments
 (0)