Skip to content
This repository was archived by the owner on Aug 8, 2022. It is now read-only.

Commit 9710d39

Browse files
authored
Merge pull request #162 from caozhong1996/check-template-syntax
docs: review src/guide/template-syntax.md
2 parents 9b6da52 + 27082e0 commit 9710d39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guide/template-syntax.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Mustache 标签将会被替代为对应数据对象上 `msg` property 的值。
4343
这个 `span` 的内容将会被替换成为 property 值 `rawHtml`,直接作为 HTML——会忽略解析 property 值中的数据绑定。注意,你不能使用 `v-html` 来复合局部模板,因为 Vue 不是基于字符串的模板引擎。反之,对于用户界面 (UI),组件更适合作为可重用和可组合的基本单位。
4444

4545
:::tip
46-
你的站点上动态渲染的任意 HTML 可能会非常危险,因为它很容易导致 [XSS 攻击](https://en.wikipedia.org/wiki/Cross-site_scripting)。请只对可信内容使用 HTML 插值,**绝不要**对用户提供的内容使用插值
46+
在你的站点上动态渲染任意的 HTML 是非常危险的,因为它很容易导致 [XSS 攻击](https://en.wikipedia.org/wiki/Cross-site_scripting)。请只对可信内容使用 HTML 插值,**绝不要**将用户提供的内容作为插值
4747
:::
4848

4949
### Attribute

0 commit comments

Comments
 (0)