Skip to content

Commit

Permalink
fix(compiler): prevent render of html code in paragraph, fixed docsif…
Browse files Browse the repository at this point in the history
  • Loading branch information
QingWei-Li committed Oct 31, 2018
1 parent 4f588e0 commit d35059d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/render/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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>`
}
Expand Down

0 comments on commit d35059d

Please sign in to comment.