Skip to Content
Menu
This question has been flagged
2 Replies
7609 Rodiniai

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

Portretas
Atmesti
Best Answer

Hi,

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

Thanks

Portretas
Atmesti
Autorius

Thanks

Best Answer

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

Portretas
Atmesti
Autorius

Thanks

Related Posts Replies Rodiniai Veikla
2
rugp. 25
2404
1
liep. 25
909
1
rugp. 25
1151
0
geg. 25
1344
2
bal. 25
3566