跳至内容
菜单
此问题已终结
2 回复
7544 查看

I want to understand what is t-esc in odoo xml?

形象
丢弃
最佳答案

Hi,

t-esc is used to print out the value in a variable.

Thanks

形象
丢弃
编写者

Thanks

最佳答案

Hi Asmaa,

The t-esc directive is used in Odoo to display the value of a field or expression in a template.

When using the t-esc directive in Odoo XML, the value of the field or expression will be automatically escaped before being displayed in the template. This means that certain characters in the value that have special meaning in HTML, such as , &, ", and ', will be replaced with their corresponding HTML entities.


Documentation:
https://www.odoo.com/documentation/14.0/developer/reference/javascript/qweb.html


Hope it Helps,

Kiran K

形象
丢弃
编写者

Thanks

相关帖文 回复 查看 活动
2
8月 25
2226
1
7月 25
760
1
8月 25
1150
0
5月 25
1260
2
4月 25
3461