mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:58:07 +08:00
docs: tpl 补充变量显示 html 的说明
This commit is contained in:
parent
382cc4de04
commit
e77aa9aaaf
@ -53,6 +53,18 @@ order: 11
|
||||
}
|
||||
```
|
||||
|
||||
如果是变量本身有 html,则需要使用 raw 过滤
|
||||
|
||||
```schema
|
||||
{
|
||||
"data": {
|
||||
"text": "<b>World!</b>"
|
||||
},
|
||||
"type": "page",
|
||||
"body": "<h1>Hello</h1> <span>${text|raw}</span>"
|
||||
}
|
||||
```
|
||||
|
||||
### 表达式
|
||||
|
||||
> 1.5.0 及以上版本
|
||||
|
Loading…
Reference in New Issue
Block a user