docs: tpl 补充变量显示 html 的说明

This commit is contained in:
吴多益 2022-01-04 20:53:45 +08:00 committed by GitHub
parent 382cc4de04
commit e77aa9aaaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 及以上版本