fix(compiler): prevent render of html code in paragraph, fixed #663
This commit is contained in:
parent
4f588e0af4
commit
d35059dd0b
1 changed files with 2 additions and 0 deletions
|
|
@ -261,6 +261,8 @@ export class Compiler {
|
|||
result = helperTpl('tip', text)
|
||||
} else if (/^\?>/.test(text)) {
|
||||
result = helperTpl('warn', text)
|
||||
} else if (/^</.test(text)) {
|
||||
return text
|
||||
} else {
|
||||
result = `<p>${text}</p>`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue