Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
7539 Tampilan

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

Avatar
Buang
Jawaban Terbai

Hi,

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

Thanks

Avatar
Buang
Penulis

Thanks

Jawaban Terbai

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

Avatar
Buang
Penulis

Thanks

Post Terkait Replies Tampilan Aktivitas
2
Agu 25
2204
1
Jul 25
750
1
Agu 25
1150
0
Mei 25
1258
2
Apr 25
3444