コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
7561 ビュー

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
2319
1
7月 25
840
1
8月 25
1150
0
5月 25
1291
2
4月 25
3497